C + + Builder Xe2 Debug Normal release crash solution one case

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.