c++ - LoadLibrary fails: First chance exception 0xC0000139 (DLL Not Found) - How to debug? -


I have a "mytest.dll" DLL, when loaded by LoadLibrary () Gets, tap (and 127 as GetLastError () ). If I use Dependency Walker on "mytest.dll", then it reports that it should be loaded properly and all the DLLs will be found properly. Running the dependency on Host XK, Walker profiler option gives me the relevant section in the log:

 00: 00: 55.099: Thread 0x "Mytest.DLL" successfully loaded on the address 0x07860000 by BBC Module 00: 00: 55.115: The first chance exception was 0xC0000139 (DLL not found) thread 0xBBC addressed at 0x76E24285 in "NTDLL.DLL". 00: 00: 55.115: Thread 0x "Mytest.DLL" was loaded by the BBC at 0x07860000 address. 00: 00: 55.115: Load LibraryW ("MyTestDile") gave zero to thread 0x BBC. Error: The specified process was not found (127). 

Did not find the debell to find out the message that NTDLL.DLL is trying to view the reports? Or should I look elsewhere for the source of the problem?

Note that loading this "mytest.DLL" from another application works properly.

Your attempt to call a specific DLL function through GetProcAddress after initial load (probably) Which can not be found? Is this 32 or 64 bit application?

If it's right that someone is loading properly in another application, then this is probably a correct entry point.

A quick suggestion is that the error code you are getting back to is missing the function name (or the standard value of the specific function) in the DLL. I would like to open something like DLL and inspect the export list. Give it

It can also tell that DLL works with another application (perhaps other applications are using different exported works in DLL)?


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -