"0xc015000f activation context being disabled is not recently activated" error Solution

Source: Internet
Author: User

ProgramWindows XP and Windows 7 32 systems run well. Today, a 64-bit Windows 7 system is installed (indicating that the program is still developed in 32-Bit mode ), the error "0xc015000f activation context being disabled is not recently activated" occurs during running. It takes a long time to solve the problem. The following is a summary:

The method mentioned on the Internet is to call cwinapp: initinstance ();Afxambientactctx = false; this problem does not occur after I use this method, but there are someCodeIf this variable is set to false, it will not be executed, so other problems may occur, so we will discard this method.

the method I use is to throw all the MFC exceptions during debug so that the MFC cannot handle exceptions, this will not cause crash. The method is as follows: In vs2008, choose "debug"> "exceptions"> "Win32 exceptions", and then throw these exceptions, check all items. However, other exceptions, such as out-of-bounds memory, should also be thrown. You 'd better test your code on another machine to handle these exceptions.

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.