MFC cannot tune out running program, debugging is Prompt "Unhandle exception**** (0xc0000005)"

Source: Internet
Author: User

The internet says the problem is because there are wild pointers or pointers to access illegal memory. But how to solve the problem exactly. I don't know if this method is used. But in my project (useful to MFC calls MATLAB), there is a method can be very good solution, can not only recall the program can also be debugging without the above error (the brother took one weeks to find such a solution):

To add a MATLAB path:

Project-->c/c++-->category:preprocessor-->additional Include Directories: Add C:\Program files\matlab\ R2010a\extern\include (this is in the MATLAB installation path)

Project-->link-->category:input-->additional Library Path: Add C:\Program files\matlab\r2010a\extern\lib\ Win32\microsoft (this is in the MATLAB installation path)

After adding these two paths, the problem is resolved.


If this error occurs later, the MATLAB DLL file may have been replaced,

The workaround is: all recompile and link: build-->rebuild all

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.