I'm having a problem with my project where it operates fine when compiled in debug mode, and works fine in release mode while the debugger is attached in Visual Studio, but if I run it in release with no debugger, I get an access violation deep within bullet physics.
The access violation seems to happen at btVoronoiSimplexSolver::updateClosestVectorAndPoints(void) C++
, I only now this because Windows gives me the option to debug after the crash. I have the same problem when it's compiled with GCC on Linux, however.
My question is: what changes between having the debugger attached and not attached that could cause this problem? Why doesn't this crash occur when the debugger is attached, and is there any way for me to set the debugger to catch this sort of problem?