# SDL with throw on windows

**URL:** <https://discourse.libsdl.org/t/sdl-with-throw-on-windows/5057>\
**Category:** SDL Development\
**Created:** [September 13, 2001, 5:12pm UTC](https://discourse.libsdl.org/t/sdl-with-throw-on-windows/5057 "2001-09-13T17:12:01Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bill\_May](https://discourse.libsdl.org/letter_avatar_proxy/v4/letter/b/8edcca/32.png) [@Bill\_May](https://discourse.libsdl.org/u/Bill_May)\
**Post date:** [September 13, 2001, 5:12pm UTC](https://discourse.libsdl.org/t/sdl-with-throw-on-windows/5057/1 "2001-09-13T17:12:01Z")

</div>

My app (mpeg4ip - [http://www.mpeg4ip.net](http://www.mpeg4ip.net)) uses cpp throw/catch to  
alert if there are errors.

This seems to work fine on linux, etc, but fails on the Windows release  
version using dev studio 5.0. It give a `runtime error’ - “abnormal program  
termination” message box.

It does work on the Windows Debug version, but we see a  
"first chance exception… Microsoft C++ exception" debug message after  
each place we would be throwing.

I’ve got exceptions set on all projects and subprojects on the compiler  
options.

Any ideas ? Anyone run into similar problems ?

Thanks,  
Bill
