un-catched segfault exception

BCS BCS at pathlink.com
Thu Jan 10 10:00:09 PST 2008


Christopher Wright wrote:
> What you can do, though, is convert a signal to an exception. It's going 
> to be a lot slower than just checking a pointer to see if it's null, but 
> if you have traced exceptions, the debugging benefit is enormous. 

Why would this be slow? seg-v are caused by hardware. When a seg-v is 
noticed it triggers an interrupt and the OS goes from there. Until you 
get a seg-v there should be NO cost at all.

Am I missing something?



More information about the Digitalmars-d mailing list