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).