un-catched segfault exception
philippe.quesnel
philippe.quesnel at gmail.com
Thu Jan 10 08:43:20 PST 2008
Jarrett Billingsley Wrote:
>
> That's funny, cause on DMDWin you _can_ catch them.
>
>
I just did a test C++ app in Windows (MsDev) ..
and I do catch exceptions thrown by a null ptr reference.
Which is what I was expecting to happen in D.
Of course I can check for a NULL ptr ...
but catching exceptions is for error handling too !!
bugs happen ;-)
One point I forgot to mention that might be important (??) :
the D code is called by C(++) code
(I'm using FLTK2 gui toolkit, calling D code on events)
I'll do some tests to see if I the same thing happens under 'normal' situations...
thx
More information about the Digitalmars-d
mailing list