My Fortran code calls some subroutines that call others, and the chain ends up in some C++ code that draws lines on the screen. Occasionally it crashes. In debug mode I see the message Run-Time Check Failure #0 -- The value of ESP was not properly saved across a function call ....
Could this be causing the crash in release mode? I use the same subroutines, called from elsewhere, with no problems.