DLL Initialization failed
-
I am getting an exception while start running my project. i am included some 6 dll's and each dll is working and verified. The error message shows, "The application failed to initialize properly (0xc0000142). Click on OK to terminate the application" "Unhandled exception in LFATE.exe (NTDLL.DLL): )xc0000142: DLL Initialization Failed"
-
I am getting an exception while start running my project. i am included some 6 dll's and each dll is working and verified. The error message shows, "The application failed to initialize properly (0xc0000142). Click on OK to terminate the application" "Unhandled exception in LFATE.exe (NTDLL.DLL): )xc0000142: DLL Initialization Failed"
Dll might be corrupted
-
I am getting an exception while start running my project. i am included some 6 dll's and each dll is working and verified. The error message shows, "The application failed to initialize properly (0xc0000142). Click on OK to terminate the application" "Unhandled exception in LFATE.exe (NTDLL.DLL): )xc0000142: DLL Initialization Failed"
I would guess
DLLMain
is returningFALSE
in response to theDLL_PROCESS_ATTACH
notification and you're statically linking to the DLL.Steve
-
I would guess
DLLMain
is returningFALSE
in response to theDLL_PROCESS_ATTACH
notification and you're statically linking to the DLL.Steve
-
Just run the app in a debugger and watch the output. I made a test app to reproduce the problem and here's the output MSVC6 produced:
Loaded 'ntdll.dll', no matching symbolic information found.
Loaded 'C:\WINDOWS\system32\kernel32.dll', no matching symbolic information found.
Loaded symbols for 'C:\Projects\Scratch\StaticLinkProblem\Debug\ProblemDLL.dll'
First-chance exception in StaticLinkProblem.exe (NTDLL.DLL): 0xC0000142: DLL Initialization Failed.The line in question is "Loaded symbols for 'C:\Projects\Scratch\StaticLinkProblem\Debug\ProblemDLL.dll'"; the last DLL load reported before the problem occured.
Steve
-
Just run the app in a debugger and watch the output. I made a test app to reproduce the problem and here's the output MSVC6 produced:
Loaded 'ntdll.dll', no matching symbolic information found.
Loaded 'C:\WINDOWS\system32\kernel32.dll', no matching symbolic information found.
Loaded symbols for 'C:\Projects\Scratch\StaticLinkProblem\Debug\ProblemDLL.dll'
First-chance exception in StaticLinkProblem.exe (NTDLL.DLL): 0xC0000142: DLL Initialization Failed.The line in question is "Loaded symbols for 'C:\Projects\Scratch\StaticLinkProblem\Debug\ProblemDLL.dll'"; the last DLL load reported before the problem occured.
Steve
Thankx. But i am getting error message as follows...
Loaded 'ntdll.dll', no matching symbolic information found.
Loaded 'C:\WINDOWS\system32\kernel32.dll', no matching symbolic information found.
Loaded 'C:\WINDOWS\system32\hp34401_32.dll', no matching symbolic information found.
Loaded 'C:\WINDOWS\system32\visa32.dll', no matching symbolic information found.
Loaded 'C:\WINDOWS\system32\advapi32.dll', no matching symbolic information found.
Loaded 'C:\WINDOWS\system32\rpcrt4.dll', no matching symbolic information found.
Loaded 'C:\WINDOWS\system32\NiViSv32.dll', no matching symbolic information found.
Loaded 'C:\WINDOWS\system32\msvcrt.dll', no matching symbolic information found.
Loaded 'C:\WINDOWS\system32\msvcrt20.dll', no matching symbolic information found.
Loaded 'C:\WINDOWS\system32\user32.dll', no matching symbolic information found.
Loaded 'C:\WINDOWS\system32\gdi32.dll', no matching symbolic information found.
Loaded 'C:\WINDOWS\system32\DP5022DLL.DLL', no matching symbolic information found.
Loaded 'C:\WINDOWS\system32\DP5301DLL.DLL', no matching symbolic information found.
Loaded 'D:\DP PROJECTS\PEA0430_SEAKING_1\LFATE_APP_MODIFIED_KARTHI\LFATE_Modified ver-0.11_13_12_06_Karthi\Debug\DP5031DLL.DLL', no matching symbolic information found.
Loaded 'C:\WINDOWS\system32\DPCPCI4509DRV.DLL', no matching symbolic information found.
Loaded 'C:\WINDOWS\system32\DPcPCI4035.dll', no matching symbolic information found.
Loaded 'C:\WINDOWS\system32\DPcPCI4140.dll', no matching symbolic information found.
Loaded 'C:\WINDOWS\system32\DPcPCI4158Drv.dll', no matching symbolic information found.
Loaded 'C:\WINDOWS\system32\DPcPCI4305.dll', no matching symbolic information found.
Loaded 'C:\WINDOWS\system32\DPcPCI2709Drv.dll', no matching symbolic information found.
Loaded 'C:\WINDOWS\system32\DPcPCI4341.dll', no matching symbolic information found.
Loaded symbols for 'C:\WINDOWS\system32\MFC42D.DLL'
Loaded symbols for 'C:\WINDOWS\system32\MSVCRTD.DLL'
Loaded symbols for 'C:\WINDOWS\system32\MFCO42D.DLL'
Loaded 'C:\WINDOWS\system32\ole32.dll', no matching symbolic information found.
Loaded 'C:\WINDOWS\system32\oleaut32.dll', no matching symbolic information found.
First-chance exception in LFATE.exe (NTDLL.DLL): 0xC0000142: DLL Initialization Failed.Whether can i concluded the probelm in
C:\WINDOWS\system32\oleaut32.dll
file. is this system dll? How can i solve it? Reg, Parthiban
-
Thankx. But i am getting error message as follows...
Loaded 'ntdll.dll', no matching symbolic information found.
Loaded 'C:\WINDOWS\system32\kernel32.dll', no matching symbolic information found.
Loaded 'C:\WINDOWS\system32\hp34401_32.dll', no matching symbolic information found.
Loaded 'C:\WINDOWS\system32\visa32.dll', no matching symbolic information found.
Loaded 'C:\WINDOWS\system32\advapi32.dll', no matching symbolic information found.
Loaded 'C:\WINDOWS\system32\rpcrt4.dll', no matching symbolic information found.
Loaded 'C:\WINDOWS\system32\NiViSv32.dll', no matching symbolic information found.
Loaded 'C:\WINDOWS\system32\msvcrt.dll', no matching symbolic information found.
Loaded 'C:\WINDOWS\system32\msvcrt20.dll', no matching symbolic information found.
Loaded 'C:\WINDOWS\system32\user32.dll', no matching symbolic information found.
Loaded 'C:\WINDOWS\system32\gdi32.dll', no matching symbolic information found.
Loaded 'C:\WINDOWS\system32\DP5022DLL.DLL', no matching symbolic information found.
Loaded 'C:\WINDOWS\system32\DP5301DLL.DLL', no matching symbolic information found.
Loaded 'D:\DP PROJECTS\PEA0430_SEAKING_1\LFATE_APP_MODIFIED_KARTHI\LFATE_Modified ver-0.11_13_12_06_Karthi\Debug\DP5031DLL.DLL', no matching symbolic information found.
Loaded 'C:\WINDOWS\system32\DPCPCI4509DRV.DLL', no matching symbolic information found.
Loaded 'C:\WINDOWS\system32\DPcPCI4035.dll', no matching symbolic information found.
Loaded 'C:\WINDOWS\system32\DPcPCI4140.dll', no matching symbolic information found.
Loaded 'C:\WINDOWS\system32\DPcPCI4158Drv.dll', no matching symbolic information found.
Loaded 'C:\WINDOWS\system32\DPcPCI4305.dll', no matching symbolic information found.
Loaded 'C:\WINDOWS\system32\DPcPCI2709Drv.dll', no matching symbolic information found.
Loaded 'C:\WINDOWS\system32\DPcPCI4341.dll', no matching symbolic information found.
Loaded symbols for 'C:\WINDOWS\system32\MFC42D.DLL'
Loaded symbols for 'C:\WINDOWS\system32\MSVCRTD.DLL'
Loaded symbols for 'C:\WINDOWS\system32\MFCO42D.DLL'
Loaded 'C:\WINDOWS\system32\ole32.dll', no matching symbolic information found.
Loaded 'C:\WINDOWS\system32\oleaut32.dll', no matching symbolic information found.
First-chance exception in LFATE.exe (NTDLL.DLL): 0xC0000142: DLL Initialization Failed.Whether can i concluded the probelm in
C:\WINDOWS\system32\oleaut32.dll
file. is this system dll? How can i solve it? Reg, Parthiban
Try turning on "loader snaps". Follow these steps: 1. Download and install the latest version of WinDBG[^]. 2. Select “Start”->”All Programs”->”Debugging Tools for Windows”->”Global Flags”. 3. The “Global Flags” dialog appears. Select the “Image File” tab. 4. In the “Image: (TAB to refresh)” edit control enter your exe name with extension; not the full path, just the filename. 5. Press the “Tab” key. 6. Tick the “Show loader snaps” tick box. 7. Press the “Apply” button. 8. Run the application in a debugger. Here’s some sample output:
Loaded 'ntdll.dll', no matching symbolic information found. Loaded 'C:\WINDOWS\system32\kernel32.dll', no matching symbolic information found. Loaded symbols for 'C:\Projects\Scratch\StaticLinkProblem\Debug\ProblemDLL.dll' [9b4,f48] LDR: Real INIT LIST for process C:\Projects\Scratch\StaticLinkProblem\Debug\StaticLinkProblem.exe pid 2484 0x9b4 [9b4,f48] C:\Projects\Scratch\StaticLinkProblem\Debug\ProblemDLL.dll init routine 100011C0 [9b4,f48] LDR: ProblemDLL.dll loaded - Calling init routine at 100011C0 [9b4,f48] LDR: DLL_PROCESS_ATTACH for dll "C:\Projects\Scratch\StaticLinkProblem\Debug\ProblemDLL.dll" (InitRoutine: 100011C0) failed LDR: LdrpInitializeProcess - Failed running initialization routines; status c0000142 LDR: _LdrpInitialize - call to LdrpInitializeProcess() failed with ntstatus c0000142 First-chance exception in StaticLinkProblem.exe (NTDLL.DLL): 0xC0000142: DLL Initialization Failed.
9. When done un-check the “Show loader snaps” tick box and press "OK". The line of interest is the following:
[9b4,f48] LDR: DLL_PROCESS_ATTACH for dll "C:\Projects\Scratch\StaticLinkProblem\Debug\ProblemDLL.dll" (InitRoutine: 100011C0) failed
Steve