Re: [GD-Windows] Finding routine that's crashing
Brought to you by:
vexxed72
From: <cas...@ya...> - 2002-08-01 21:23:43
|
Hey, thanks! what a nice code! by the way, there's a little leak in line 96 in file ExceptionHandler.cpp: tt = new char[TTBUFLEN]; is never freed, just replace it by: char tt[TTBUFLEN]; and should be fine, or add the appropiate delete at the end of the function. And there's no need to have TTBUFLEN = 0xFFFF, that's too big I think... Ignacio Castaño cas...@ya... Andrew Grant wrote: > This would be very handy, if you're willing to share! > > I can find SymGetSymFromAddr in MSDN, but I'm fuzzy on how you get the > stack trace. (Second sending, apparently the mail list has an attatchment limit which I went over by more than I thought it'd be). Files are at <http://www.b0rked.clara.co.uk/assert.zip> Attatched is the source for something similar (and a drop in module for people who don't really want to worry about how it works). Sorry for the attatchment, it's fairly small and I don't have anywhere at hand to upload it to. I wrote this a while ago for tracking down some rare crashes we had in art tools, it's basically a drop in that replaces the standard MSVC runtime assert but provides more info. You place the dll in your working folder and add the two files to your project so when an assert triggers you get the below dialog. If the DLL doesn't exist then it defaults back to the standard version. use ASSERT(x) or one of the macros in stdassert.h and you should get a dialog like the image below. Hopefully it might be of some use to someone. It's very old code that I wrote in one evening so be kind, also some of the stack trace code is ripped from an MSDN sample but tidied up. Andrew Grant- Climax Brighton _______________________________________________________________ Yahoo! Messenger Nueva versión: Webcam, voz, y mucho más ¡Gratis! Descárgalo ya desde http://messenger.yahoo.es |