Click here to Skip to main content
15,915,093 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Copy constructor Pin
prasad_som20-Dec-06 19:09
prasad_som20-Dec-06 19:09 
QuestionDLL Initialization failed Pin
Parthiban20-Dec-06 17:49
Parthiban20-Dec-06 17:49 
AnswerRe: DLL Initialization failed Pin
shadrach_india20-Dec-06 18:44
shadrach_india20-Dec-06 18:44 
AnswerRe: DLL Initialization failed Pin
Stephen Hewitt20-Dec-06 19:00
Stephen Hewitt20-Dec-06 19:00 
GeneralRe: DLL Initialization failed Pin
Parthiban20-Dec-06 19:05
Parthiban20-Dec-06 19:05 
GeneralRe: DLL Initialization failed Pin
Stephen Hewitt20-Dec-06 19:19
Stephen Hewitt20-Dec-06 19:19 
GeneralRe: DLL Initialization failed Pin
Parthiban22-Dec-06 20:29
Parthiban22-Dec-06 20:29 
GeneralRe: DLL Initialization failed Pin
Stephen Hewitt2-Jan-07 12:23
Stephen Hewitt2-Jan-07 12:23 
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.<br />
Loaded 'C:\WINDOWS\system32\kernel32.dll', no matching symbolic information found.<br />
Loaded symbols for 'C:\Projects\Scratch\StaticLinkProblem\Debug\ProblemDLL.dll'<br />
[9b4,f48] LDR: Real INIT LIST for process C:\Projects\Scratch\StaticLinkProblem\Debug\StaticLinkProblem.exe pid 2484 0x9b4<br />
[9b4,f48]    C:\Projects\Scratch\StaticLinkProblem\Debug\ProblemDLL.dll init routine 100011C0<br />
[9b4,f48] LDR: ProblemDLL.dll loaded - Calling init routine at 100011C0<br />
[9b4,f48] LDR: DLL_PROCESS_ATTACH for dll "C:\Projects\Scratch\StaticLinkProblem\Debug\ProblemDLL.dll" (InitRoutine: 100011C0) failed<br />
LDR: LdrpInitializeProcess - Failed running initialization routines; status c0000142<br />
LDR: _LdrpInitialize - call to LdrpInitializeProcess() failed with ntstatus c0000142<br />
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

QuestionError reported by BoundsChecker Pin
cy163@hotmail.com20-Dec-06 17:49
cy163@hotmail.com20-Dec-06 17:49 
AnswerRe: Error reported by BoundsChecker Pin
Mark Salsbery20-Dec-06 18:08
Mark Salsbery20-Dec-06 18:08 
GeneralRe: Error reported by BoundsChecker Pin
cy163@hotmail.com20-Dec-06 18:27
cy163@hotmail.com20-Dec-06 18:27 
GeneralRe: Error reported by BoundsChecker Pin
benjymous20-Dec-06 22:06
benjymous20-Dec-06 22:06 
GeneralRe: Error reported by BoundsChecker Pin
cy163@hotmail.com21-Dec-06 5:00
cy163@hotmail.com21-Dec-06 5:00 
QuestionRe: Error reported by BoundsChecker Pin
prasad_som20-Dec-06 18:09
prasad_som20-Dec-06 18:09 
AnswerRe: Error reported by BoundsChecker Pin
cy163@hotmail.com20-Dec-06 18:23
cy163@hotmail.com20-Dec-06 18:23 
AnswerRe: Error reported by BoundsChecker Pin
James R. Twine21-Dec-06 1:18
James R. Twine21-Dec-06 1:18 
GeneralRe: Error reported by BoundsChecker Pin
cy163@hotmail.com21-Dec-06 5:01
cy163@hotmail.com21-Dec-06 5:01 
GeneralRe: Error reported by BoundsChecker Pin
Mark Salsbery21-Dec-06 5:14
Mark Salsbery21-Dec-06 5:14 
QuestionDrawing Horizontal text Pin
NILANKARAJA20-Dec-06 17:45
NILANKARAJA20-Dec-06 17:45 
AnswerRe: Drawing Horizontal text Pin
Hamid_RT20-Dec-06 18:13
Hamid_RT20-Dec-06 18:13 
QuestionRe: Drawing Horizontal text Pin
NILANKARAJA20-Dec-06 21:30
NILANKARAJA20-Dec-06 21:30 
AnswerRe: Drawing Horizontal text Pin
Waldermort20-Dec-06 21:45
Waldermort20-Dec-06 21:45 
AnswerRe: Drawing Horizontal text Pin
Hamid_RT21-Dec-06 1:37
Hamid_RT21-Dec-06 1:37 
AnswerRe: Drawing Horizontal text Pin
Stephen Hewitt2-Jan-07 13:41
Stephen Hewitt2-Jan-07 13:41 
Questionafter insert CButton...the program can't execute? Pin
cyn820-Dec-06 17:18
cyn820-Dec-06 17:18 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.