[Issue 1001] print stack trace (in debug mode) when program die

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Aug 18 17:43:20 PDT 2011


http://d.puremagic.com/issues/show_bug.cgi?id=1001



--- Comment #55 from Don <clugdbug at yahoo.com.au> 2011-08-18 17:43:11 PDT ---
(In reply to comment #54)
> Yeah, Linux sends a signal when you have a memory violation like accessing a
> null pointer, and I've had success with creating a signal handler for SIGSEGV
> and throwing an exception manually. It's actually really easy, and it's much
> faster than having null pointer checks.

And Windows creates an exception, which does appear in the stack trace.
The behaviour is very strongly OS-dependent.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list