0

Running a program on a machine that doesn't have the IDE I get this error. I understand that the problem is a missing or unregistered DLL or OCX.

Lots of postings on how to fix it, but all the answers assume that you know which DLL/OCX is missing.

Using madExcept I see that there are 76 DLL's listed as "modules".

I'm using Delphi XE for development.

Is there a way to get a list of DLL dependences for a program with the missing ones highlighted in some way.

  • "Class not registered" is a COM error. COM libraries are not linked statically, they are loaded dynamically by COM, so they don't show up in traditional dependant checks. I suggest you run the program on a working machine and use the IDE debugger or SysInternals Process Explorer to take note of the libraries it successfully loads, then run the program on the non-working machine and use SysInternals Process Explorer/Monitor to see what libraries it loads before the error occurs. Then compare the two lists and copy+register missing libraries until the error goes away. – Remy Lebeau Oct 2 '17 at 5:15
  • 1
    Or, if you know the exact COM class name/ID that is failing (SysInternals Process Monitor can show you the name/ID that COM is looking for in the Registry), you can try researching online if that class belongs to a known library. – Remy Lebeau Oct 2 '17 at 5:16
  • Try some debugging. What class is being created when the error is raised? – David Heffernan Oct 2 '17 at 5:32
  • Doesn't madExcept call stack tells you exactly what the source of that exception? – kobik Oct 2 '17 at 8:54
  • Thanks to David Heffernan, kobik and Remy Lebeau for replying. Apologies for the slow response - I was my granddaughter's wedding yesterday and the organisation was a higher priority for me. – Jeff Cook Oct 6 '17 at 3:03
0

My problem was indeed relating to a DLL.

I had thought that the difference between working and non working systems was the presence of the IDE, but instead it was the fact that Skype had been installed on some PC and not others.

The culprit (I think) was the Skype4COM.DLL. At some stage Skype functions had been added to the app. As we had decided to remove those functions from the app for other reasons (mainly wanting to stay independent of Skype), I removed them and the app runs OK.

Just putting that DLL onto the non-working PC did not fix the problem, but that may have been related to the old XP.

Thanks to @David Heffernan, @kobik and @Remy Lebeau for helping out.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.