Code cannot debug.

L

lukwagoroy

Loaded 'ntdll.dll', no matching symbolic information found.

I'm writing a small program. It compiled and run. But when trying
to debug by select, I got the following
error messages:

Loaded 'ntdll.dll', no matching symbolic information found.
Loaded 'D:\WINDOWS\system32\kernel32.dll', no matching symbolic
information found.
Loaded 'D:\WINDOWS\system32\wsock32.dll', no matching symbolic
information found.
Loaded 'D:\WINDOWS\system32\ws2_32.dll', no matching symbolic
information found.
Loaded 'D:\WINDOWS\system32\msvcrt.dll', no matching symbolic
information found.
Loaded 'D:\WINDOWS\system32\ws2help.dll', no matching symbolic
information found.
Loaded 'D:\WINDOWS\system32\advapi32.dll', no matching symbolic
information found.
Loaded 'D:\WINDOWS\system32\rpcrt4.dll', no matching symbolic
information found.
The thread 0xDD8 has exited with code 0 (0x0).
 
G

Guest

I cannot specify what is reason that you can't debug the program, but I can
give you an alternative solution - try to use a macro to display debug
information. This trick really helps, when classical debugging is very
difficult or impossible.

Include to your "stdafx.h" file following:

#ifdef _DEBUG
#define DEBUG_MESSAGE(msg) MessageBox(NULL, msg, "Debug", 0)
#else
#define DEBUG_MESSAGE(msg)
#endif

then, when you want to interrupt the program, include a macro in your code:

....
AnyAction();
DEBUG_MESSAGE("Any action performed");
....

In Debug compilation Message Box will appear, while in Release the Message
Box (and it's corresponding code in binary) will not exist.

I use it to debug my ActiveX DLL-s. Maybe it helps, if you will not find
other way to debug your program.

Regards!
David
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top