Making sense of Access Violation

Tydr Schnubbis fake at address.dude
Fri Apr 21 17:58:37 PDT 2006


Tydr Schnubbis wrote:
> I'm making a multithreaded gui app which gives me an Access Violation 
> exception.  I'm not sure how to figure out where it originates from.  If 
> I use the msvc 6 debugger, I get a crash address.  But msvc doesn't show 
> me where in the code that address is, so I'm still stuck.
> 
> Is there a tool like gnu's addr2line that will give me a file and line 
> number?  I couldn't make addr2line work with the exe that dmd creates.

Ok, I'm now trying to use WinDbg.  I read somewhere to set a breakpoint 
on _main, but how?  First I use the "Open Executable..." command, and 
that works.  I've also set it to download symbols automatically.  So 
far, so good.  Then, if type "bp _main" it says "Bp expression '_main' 
could not be resolved, adding deferred bp", for "bm _main" it says "No 
matching code symbols found, no breakpoints set."

What am I doing wrong?



More information about the Digitalmars-d-learn mailing list