RE: 0xc0000142 Crash in VS2005 (C/C++ App) NTDLL Symbols Not Loading..

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Thank you for the reply. Maybe I should tell you in little more detail so
that you can help me nail down further, for I feel the problem is in loading
a DLL (although I cant seem to figure out which one). As soon as I launch my
app (XDE.EXE), I get the error msg 0xC0000142 and when I click OK on the
dialog box, VS shows following info in the output window.
------------------------------------------------------------------------------------------------'xde.exe':
Loaded
'C:\WINCE500\PBworkspaces\AppRoot\Applicationz\Applicationz\Applications\NaviNam\xde\Debug\xde.exe', Symbols loaded.
'xde.exe': Loaded 'C:\WINDOWS\system32\ntdll.dll', Symbols loaded (source
information stripped).
AVRF: xde.exe: pid 0xADC: flags 0x80000181: application verifier enabled
'xde.exe': Loaded 'C:\WINDOWS\system32\verifier.dll', Symbols loaded (source
information stripped).
'xde.exe': Loaded 'C:\WINDOWS\system32\vrfcore.dll', Symbols loaded.
'xde.exe': Loaded 'C:\WINDOWS\system32\vfbasics.dll', Symbols loaded.
'xde.exe': Loaded 'C:\WINDOWS\system32\vfcompat.dll', Symbols loaded.
'xde.exe': Loaded 'C:\WINDOWS\system32\msvcp60.dll', Symbols loaded (source
information stripped).
'xde.exe': Loaded 'C:\WINDOWS\system32\msvcrt.dll', Symbols loaded (source
information stripped).
'xde.exe': Loaded 'C:\WINDOWS\system32\kernel32.dll', Exports loaded.
AVRF: verifier.dll provider initialized for xde.exe with flags 0x80000181
'xde.exe': Loaded
'C:\WINCE500\PBworkspaces\AppRoot\Applicationz\Applicationz\Applications\NaviNam\xde\Debug\OSMDLL.dll', Symbols loaded.
'xde.exe': Loaded
'C:\WINDOWS\WinSxS\x86_Microsoft.VC80.DebugCRT_1fc8b3b9a1e18e3b_8.0.50727.762_x-ww_5490cd9f\msvcr80d.dll', Symbols loaded.
'xde.exe': Loaded
'C:\WINCE500\PBworkspaces\AppRoot\Applicationz\Applicationz\Applications\NaviNam\xde\Debug\CommonDll.dll', Symbols loaded.
'xde.exe': Loaded 'C:\WINDOWS\system32\user32.dll', Exports loaded.
'xde.exe': Loaded 'C:\WINDOWS\system32\gdi32.dll', Exports loaded.
'xde.exe': Loaded
'C:\WINCE500\PBworkspaces\AppRoot\Applicationz\Applicationz\Applications\NaviNam\xde\Debug\HmsControlWin.dll', Symbols loaded.
'xde.exe': Loaded
'C:\WINDOWS\WinSxS\x86_Microsoft.VC80.DebugMFC_1fc8b3b9a1e18e3b_8.0.50727.762_x-ww_257740a4\mfc80d.dll', Symbols loaded.
'xde.exe': Loaded 'C:\WINDOWS\system32\shlwapi.dll', Exports loaded.
'xde.exe': Loaded 'C:\WINDOWS\system32\advapi32.dll', Symbols loaded (source
information stripped).
'xde.exe': Loaded 'C:\WINDOWS\system32\rpcrt4.dll', Exports loaded.
'xde.exe': Loaded 'C:\WINDOWS\system32\secur32.dll', Symbols loaded (source
information stripped).
'xde.exe': Loaded 'C:\WINDOWS\system32\oleaut32.dll', Exports loaded.
'xde.exe': Loaded 'C:\WINDOWS\system32\ole32.dll', Exports loaded.
'xde.exe': Loaded
'C:\WINCE500\PBworkspaces\AppRoot\Applicationz\Applicationz\Applications\NaviNam\xde\Debug\HMIWrapperReceiver.dll', Symbols loaded.
'xde.exe': Loaded
'C:\WINCE500\PBworkspaces\AppRoot\Applicationz\Applicationz\Applications\NaviNam\xde\Debug\HCXIPC.dll', Symbols loaded.
'xde.exe': Loaded
'C:\WINCE500\PBworkspaces\AppRoot\Applicationz\Applicationz\Applications\NaviNam\xde\Debug\HCXLog.dll', Symbols loaded.
'xde.exe': Loaded
'C:\WINDOWS\WinSxS\x86_Microsoft.VC80.DebugCRT_1fc8b3b9a1e18e3b_8.0.50727.762_x-ww_5490cd9f\msvcp80d.dll', Symbols loaded.
'xde.exe': Loaded
'C:\WINCE500\PBworkspaces\AppRoot\Applicationz\Applicationz\Applications\NaviNam\xde\Debug\IPC.dll', Symbols loaded.
'xde.exe': Loaded
'C:\WINCE500\PBworkspaces\AppRoot\Applicationz\Applicationz\Applications\NaviNam\xde\Debug\HMIWrapper.dll', Symbols loaded.
'xde.exe': Loaded
'C:\WINCE500\PBworkspaces\AppRoot\Applicationz\Applicationz\Applications\NaviNam\xde\Debug\STDDLL.dll', Symbols loaded.
'xde.exe': Loaded
'C:\WINCE500\PBworkspaces\AppRoot\Applicationz\Applicationz\Applications\NaviNam\xde\Debug\HCXMemory.dll', Symbols loaded.
'xde.exe': Loaded
'C:\WINCE500\PBworkspaces\AppRoot\Applicationz\Applicationz\Applications\NaviNam\xde\Debug\SharedBuffer.dll', Symbols loaded.
'xde.exe': Loaded 'C:\WINDOWS\system32\comdlg32.dll', Symbols loaded (source
information stripped).
'xde.exe': Loaded 'C:\WINDOWS\system32\comctl32.dll', Exports loaded.
'xde.exe': Loaded 'C:\WINDOWS\system32\shell32.dll', Binary was not built
with debug information.
'xde.exe': Loaded 'C:\WINDOWS\system32\mpr.dll', Symbols loaded (source
information stripped).
'xde.exe': Loaded 'C:\WINDOWS\system32\winmm.dll', Symbols loaded (source
information stripped).
'xde.exe': Loaded
'C:\WINCE500\PBworkspaces\AppRoot\Applicationz\Applicationz\Applications\NaviNam\xde\Debug\AUIWrapper.dll', Symbols loaded.
'xde.exe': Loaded
'C:\WINCE500\PBworkspaces\AppRoot\Applicationz\Applicationz\Applications\NaviNam\xde\Debug\MyListDll.dll', Symbols loaded.
First-chance exception at 0x7c964ed1 (ntdll.dll) in xde.exe: 0xC0000142: DLL
Initialization Failed.
------------------------------------------------------------------------------------------------
Ans the call stack window says:
------------------------------------------------------------------------------------------------
ntdll.dll!_RtlRaiseStatus@4() + 0x26 bytes
ntdll.dll!__LdrpInitialize@12() + 0x26b95 bytes
ntdll.dll!_KiUserApcDispatcher@20() + 0x7 bytes
kernel32.dll!CreateThread() + 0x2e bytes
[Frames below may be incorrect and/or missing, no symbols loaded for
kernel32.dll]
------------------------------------------------------------------------------------------------
Now, when I click continue, the call stack changes to the following:
------------------------------------------------------------------------------------------------
mfc80d.dll!ATL::CSimpleStringT<wchar_t,1>::CSimpleStringT<wchar_t,1>(ATL::IAtlStringMgr * pStringMgr=0x783f082c) Line 227 + 0x8 bytes C++

mfc80d.dll!ATL::CStringT<wchar_t,StrTraitMFC_DLL<wchar_t,ATL::ChTraitsCRT<wchar_t>
::CStringT<wchar_t,StrTraitMFC_DLL<wchar_t,ATL::ChTraitsCRT<wchar_t> > >()
Line 1020 C++
mfc80d.dll!AFX_MODULE_STATE::AFX_MODULE_STATE(int bDLL=1, long (HWND__ *,
unsigned int, unsigned int, long)* pfnAfxWndProc=0x78246540, unsigned long
dwVersion=2048, int bSystem=0) Line 132 + 0x6c bytes C++
mfc80d.dll!_AFX_BASE_MODULE_STATE::_AFX_BASE_MODULE_STATE() Line 399 +
0x1d bytes C++
mfc80d.dll!CProcessLocal<_AFX_BASE_MODULE_STATE>::CreateObject() Line 227
+ 0x47 bytes C++
mfc80d.dll!CProcessLocalObject::GetData(CNoTrackObject * (void)*
pfnCreateObject=0x78246a90) Line 461 + 0x3 bytes C++
mfc80d.dll!CProcessLocal<_AFX_BASE_MODULE_STATE>::GetData() Line 213 +
0xd bytes C++
mfc80d.dll!AfxGetModuleState() Line 437 + 0xa bytes C++
xde.exe!AfxInitialize(int bDLL=0, unsigned long dwVersion=2048) Line 40 +
0x5 bytes C++
xde.exe!`dynamic initializer for '_afxInitAppState''() Line 74 + 0xf
bytes C++
msvcr80d.dll!_initterm(void (void)* * pfbegin=0x0161239c, void (void)* *
pfend=0x01612668) Line 855 C
xde.exe!__tmainCRTStartup() Line 512 + 0xf bytes C
xde.exe!WinMainCRTStartup() Line 414 C
kernel32.dll!RegisterWaitForInputIdle() + 0x49 bytes
[Frames below may be incorrect and/or missing, no symbols loaded for
kernel32.dll]

------------------------------------------------------------------------------------------------
and the output windows shows the following additional lines:
------------------------------------------------------------------------------------------------
Unhandled exception at 0x7c964ed1 (ntdll.dll) in xde.exe: 0xC0000142: DLL
Initialization Failed.
First-chance exception at 0x78215509 (mfc80d.dll) in xde.exe: 0xC0000005:
Access violation reading location 0x0000000c.
------------------------------------------------------------------------------------------------
.



Relevant Pages

  • Re: Warning: Wikipedia RGB to YUV and YUV to RGB formulas are flawed.
    ... Microsoft uses the same flawed formula's on it's webpage. ... // incorrect results ... unsigned int Y, U, V; ...
    (comp.graphics.algorithms)
  • Re: Horrible newbie questions
    ... > your connection back to eVC4 and will be displayed in your Output Window ... It looks like the emulator loads OK, but it feels like any link between eVC4 ... I know I am missing something obvious..... ...
    (microsoft.public.pocketpc.developer)
  • [PATCH] autofs4 - NFY_NONE wait race fix
    ... This patch fixes two problems. ... the comparison of entries in the waitq.c was incorrect. ... wait forever on a non existant expire. ...
    (Linux-Kernel)
  • [patch 08/16] Bogomips calculation for 64 bit.
    ... The bogomips calculation triggered via reading from /proc/cpuinfo ... can return incorrect values if the qrnnd assembly is called with a ... pointer in %r2 with any of the upper 32 bits set. ... unsigned int, unsigned int); ...
    (Linux-Kernel)
  • [PATCH] sata_sx4: refresh and convert to new EH
    ... Several bugs and missing pieces in the new-EH conversion were addressed ... void *psource, u32 offset, u32 size); ... unsigned int total_len) ...
    (Linux-Kernel)