![]() 'regsvr32.exe': Loaded 'C:\Windows\System32\apphelp.dll', Cannot find or open the PDB file. ![]() 'regsvr32.exe': Loaded 'C:\Windows\System32\shlwapi.dll', Cannot find or open the PDB file. 'regsvr32.exe': Loaded 'C:\Windows\System32\ole32.dll', Cannot find or open the PDB file. 'regsvr32.exe': Loaded 'C:\Windows\System32\usp10.dll', Cannot find or open the PDB file. 'regsvr32.exe': Loaded 'C:\Windows\System32\lpk.dll', Cannot find or open the PDB file. 'regsvr32.exe': Loaded 'C:\Windows\System32\gdi32.dll', Cannot find or open the PDB file. 'regsvr32.exe': Loaded 'C:\Windows\System32\user32.dll', Cannot find or open the PDB file. 'regsvr32.exe': Loaded 'C:\Windows\System32\rpcrt4.dll', Cannot find or open the PDB file. 'regsvr32.exe': Loaded 'C:\Windows\System32\sechost.dll', Cannot find or open the PDB file. 'regsvr32.exe': Loaded 'C:\Windows\System32\msvcrt.dll', Cannot find or open the PDB file. 'regsvr32.exe': Loaded 'C:\Windows\System32\advapi32.dll', Cannot find or open the PDB file. 'regsvr32.exe': Loaded 'C:\Windows\System32\KernelBase.dll', Cannot find or open the PDB file. 'regsvr32.exe': Loaded 'C:\Windows\System32\kernel32.dll', Cannot find or open the PDB file. 'regsvr32.exe': Loaded 'C:\Program Files\AVAST Software\Avast\snxhk64.dll', Cannot find or open the PDB file. 'regsvr32.exe': Loaded 'C:\Windows\System32\ntdll.dll', Cannot find or open the PDB file. When it's crash: 'regsvr32.exe': Loaded 'C:\Windows\System32\regsvr32.exe', Cannot find or open the PDB file. Here the list of loaded Dll in the both case: Net initialization are not really finish (if "mscoreei.dll" isn't loaded yet) and this behavior generate a crash in my Dll. It seems that the DLL "mscoree.dll" is always loaded before my dll, but the other DLL "mscoreei.dll" is loaded before, when it So I have look to the dll which are loaded when the problem occurred and when the problem disappear. If the Microsoft dll "mscoreei.dll" is loaded before my Dll which make a call to GetFileVersionInfoSizeW(), the problem disappear ! The very strange thing, appear when I change the order of the Dll loading. If I move the call to "GetFileVersionInfoSizeW" in the case "DLL_THREAD_ATTACH", the problem disappear too. GetModuleFileNameW (InstanceRshDll1, ExeFileName, MAX_PATH) ĭWORD dwSize = ::GetFileVersionInfoSizeW(ExeFileName, &handle) HINSTANCE InstanceRshDll1=::GetModuleHandleW(L"MyDllProblem.dll") Here the code of DllMain(): BOOL APIENTRY DllMain( HMODULE hModule, Note that even when the problem occur, the function GetFileVersionInfoSizeW() work great, the return size is good, and I have noĮrror with this function (the error appear after the call to DllMain()). The first strange thing is, if I removed the call to GetFileVersionInfoSizeW() in the DllMain() of my Dll, the problem disappear. After putting some breakpoint, it seems that the crash is in kernel Dll, near the end After theĬalled of this function DllMain(), the system crash (First-chance exception at 0x000007fef903aa5e in regsvr32.exe) and I don't have any callstack that tell me where I am. In one branch of this dependencies, a Dll is calling the function GetFileVersionInfoSizeW() in its DllMain() function of this Dll. This activeX/Dll have multiple dependencies. ![]() The problem occur in the context of an ActiveX that I try to register. I have a very strange problem that lead to failed to load a static Dll.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |