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.