Debug assertion failed! How to solve the problem?

Source: Internet
Author: User

One day the debugger suddenly jumps out of the following error:

Microsoft Visual C + + Debug Library
Debug Assertion failed!

program:i:\ Guangdong unicom \ Ministry of the background program \debug\batchsave.exe

Expression:nptr!= NULL

For information on how your the program can cause a assertion
Failure, the Visual C + + documentation on asserts.

(Press Retry to debug the application)
Abort (A) retry (R) ignore (I)


Tracking Solution:


1, press F5 to run your program
2, in case of error, select "Retry"
3. Press Alt+7 to pull up the call Stack window
4, double click from the last one of their own defined function, the system will automatically display the function of the file, at this time the program is suspended at the cursor. In general, mistakes are in the vicinity. You can confirm it by looking at the value of the variable.

A good way to debug.

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: 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.