How debug assertion Failed in MFC find the Cause

Source: Internet
Author: User
Tags assert

Tag: Log assertion IMA Socket height How order encounters an error

Frequently encountered assertion failure problems when writing MFC programs

Error dialog box gives a directory, is in the F-drive, but the search will find that the computer may not have this directory at all.

Finally found this file can be found in the VS installation directory:

\atlmfc\src\mfc This part of the path is fixed.

Find the file, open, see the error prompt 592 lines.

ASSERT (Psocket!=null);

It turns out that the pointer is empty to cause an assert error.

You can add an assert or Try...catch in your own program where the pointer is handled.


Reference documents:

"Turn" Dlgdata.cpp line 40 assertion Failure-wi100sh-Blog Park https://www.cnblogs.com/wi100sh/p/4219689.html

How debug assertion Failed in MFC find the Cause

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.