Jun 16, 2009 at 12:33am Jun 16, 2009 at 12:33am UTC
You need to setup your project configuration correctly for C++ Structured Exception Handling"
Jun 16, 2009 at 1:10am Jun 16, 2009 at 1:10am UTC
ok well i figured it out.
thanks to you actually.
even tho it kinda was configured.
visual studios had the option
"enable C++ exceptions"
the choices were
no, yes, yes with seh exeptions.
it was on yes, which i guess means if theres an exeption.. don't do a damn thing.
so i put it on yes with seh... and it works.
ill look up the difference between those options l8r.
thanks.
Jun 16, 2009 at 1:25am Jun 16, 2009 at 1:25am UTC
Yeah, it's all somewhat messy
Jun 16, 2009 at 4:02am Jun 16, 2009 at 4:02am UTC
I think MS did their own version of modified version of C++ exception handling,
so it is a bit hit and miss trying to get it right.
Jun 16, 2009 at 8:40am Jun 16, 2009 at 8:40am UTC
Structured Exception Handling (SEH), is part of the Windows system. To use SEH from C/C++ you use the __try and __except keywords. As the divide by zero is a hardware exception it will be passed up to Windows, who in-turn raises an SEH exception that is not handled by your code unless you map SEH into the C++ exception mechanism (yes with SEH exceptions).
Jun 16, 2009 at 11:13am Jun 16, 2009 at 11:13am UTC
Ah, that clears that up for me.
Exceptions is something that I hardly use.
Jun 16, 2009 at 5:12pm Jun 16, 2009 at 5:12pm UTC
oh, thank you Grey Wolf.
thanks you to Null for the link. gonna look at it now.