Today modified the previous project code, is an EXE program C + + Builder Xe2 compiled. It used to be good. Today changed the version number compiled a bit, incredibly can not be used. Direct crashes prompt memory for unauthorized access. And apparently did not enter the WinMain on the collapse, this is generally the most difficult to debug. With OD debugging for half a day also did not see why. Check the code that has been changed recently, no problem is found.
The debug version is then changed directly to single-step discovery without problems. So it's no problem to keep doing it. Straightforward operation is no problem. Fuck the original debug is good. Think of the solution, look at the relevant _DEBUG macro code is not a problem. After one hours of not doing well.
Finally try clean, compile and run, then incredibly good. And then compile and run and crash. After the last clean, the compilation is published directly.
The root cause was not found, but the problem was solved.
Keep this in mind so that you don't have another one hours to meet the problem next time.
C + + Builder Xe2 Debug Normal release crash solution one case