un-catched segfault exception
philippe.quesnel
philippe.quesnel at gmail.com
Thu Jan 10 10:11:34 PST 2008
ok, it seems this is a Windows vs 'Unix' difference...
actually, more like a "Windows type" compiler vs GNU / 'Unix' compiler !
a simple C++ app that tries to write to a NULL ptr :
On Windows :
- compiled w. MsDev6 : the 'exception' is "catch"ed
- compiled w. mingw32 C++ : seg faults
(same w. cygwin)
So depending on the compiler, the behaviour is different.
AND .. same difference between GDC & DMD !!
(as Jarrett mentionned)
the same code (Windows again) ..
+ compiled w. gdc does not catch the 'exception', (segfault)
+ compiled w. dmd DOES catch the error
niiiice .. NOT ;-)
I'll have to look into this signal stuff .. time to read those other posts again !
thank you
Phil
More information about the Digitalmars-d
mailing list