Re: Exception in my application
From: Oleg Starodumov (oleg_staro_at_hotmail.com)
Date: 08/23/04
- Previous message: Jochen Kalmbach: "Re: Symbol server woes"
- In reply to: Jeff: "RE: Exception in my application"
- Next in thread: Jeff: "Re: Exception in my application"
- Reply: Jeff: "Re: Exception in my application"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 23 Aug 2004 12:41:38 +0300
It would be useful to see the call stack at the moment of the exception.
Good debug symbols for system DLLs will be needed
(now there are no symbols for system DLLs on your system,
so the call stack will not be correct, probably).
Since it is not too straightforward to configure VC6 debugger to use
the latest system symbols, may be it is better to download
WinDbg debugger and reproduce the problem with it:
You can download it here (Debugging Tools for Windows package):
http://www.microsoft.com/whdc/ddk/debugging/default.mspx
Run the application under WinDbg, and when it stopped at the given
breakpoint, run these commands:
.symfix
.reload /f
kv
and post here the output of kv command. (Note that .reload will cause
symbols to be downloaded from Microsoft's symbol server)
(Btw, here is an example of using WinDbg to download symbols
for VC6 debugger:
http://users.rcn.com/jenjordi/jordi/symbols.html
(with one addition: if you work on Windows 2000, you should also copy
downloaded .DBG files, in addition to .PDB files;
and AFAIK it is also unnecessary to modify any Registry settings on Windows 2000)
Also try to run the application under Full PageHeap (since heap corruption
is a possible reason):
1) In the installation directory of Debugging Tools, find GFlags utility
and run it as the following:
gflags -p /enable YourApp.exe /full
(replace YourApp.exe with the real name of your executable)
2) Run the application under debugger (e.g. Visual Studio debugger).
If PageHeap detects a problem, it will raise an access violation or a hard-coded
breakpoint. See also Debug Output window for additional messages
from PageHeap.
More information about PageHeap:
http://support.microsoft.com/default.aspx?scid=kb;en-us;286470
Regards,
Oleg
- Previous message: Jochen Kalmbach: "Re: Symbol server woes"
- In reply to: Jeff: "RE: Exception in my application"
- Next in thread: Jeff: "Re: Exception in my application"
- Reply: Jeff: "Re: Exception in my application"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|