digitalmars.D.learn - Making sense of Access Violation
- Tydr Schnubbis (6/6) Apr 21 2006 I'm making a multithreaded gui app which gives me an Access Violation
- Tydr Schnubbis (8/15) Apr 21 2006 Ok, I'm now trying to use WinDbg. I read somewhere to set a breakpoint
- Tydr Schnubbis (4/21) Apr 21 2006 Just "bp main" works! I've managed to to get windbg to open the source
- Tydr Schnubbis (3/24) Apr 21 2006 Nevermind, I can just open them manually. Seems that to set
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.
Apr 21 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?
Apr 21 2006
Tydr Schnubbis wrote:Tydr Schnubbis wrote:Just "bp main" works! I've managed to to get windbg to open the source code file a couple of times when fooling around with it, but I can't remember how I did it. Does anyone know?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?
Apr 21 2006
Tydr Schnubbis wrote:Tydr Schnubbis wrote:Nevermind, I can just open them manually. Seems that to set breakpoints, I have to use the mangled symbols, but at least it works. :)Tydr Schnubbis wrote:Just "bp main" works! I've managed to to get windbg to open the source code file a couple of times when fooling around with it, but I can't remember how I did it. Does anyone know?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?
Apr 21 2006