un-catched segfault exception
Christopher Wright
dhasenan at gmail.com
Thu Jan 10 20:27:54 PST 2008
BCS wrote:
> 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?
Handling an error will be slower. Handling a lack of an error will be
faster.
More information about the Digitalmars-d
mailing list