I've tracked it down to this line...
MyVar# = (H# - InH#) / 2.0
That crashes. However...
MyVar# = (H# - InH#)
... runs just fine. Dividing by two is crashing the compiled EXE. If I leave debug enabled and create the EXE, everything is cool again.
So I guess the compiler is doing something to that piece of code in a release mode EXE that it shouldn't be. Looks like I might be shipping a debug mode EXE then.
*sigh*
MyVar# = (H# - InH#) / 2.0
That crashes. However...
MyVar# = (H# - InH#)
... runs just fine. Dividing by two is crashing the compiled EXE. If I leave debug enabled and create the EXE, everything is cool again.
So I guess the compiler is doing something to that piece of code in a release mode EXE that it shouldn't be. Looks like I might be shipping a debug mode EXE then.
*sigh*