While the program was running, this error popped up, calling functions on the stack, and it was very confusing.
After searching on the Internet, I found a prompt to disable the ActivationContext:
afxAmbientActCtx= FALSE in CApp::InitInstance().
this “solves” the problem, but upon closer inspection it turns out to be a hidden problem.
Junfeng Zhang in their blog to the comparatively detailed explanation (http://blogs.msdn.com/b/junfeng/archive/2006/03/19/sxs-activation-context-activate-and-deactivate.aspx). Basically, this error occurred because an exception was thrown in the code, which skipped the Deactivation corresponding to Context Activation, leading to subsequent Deactivation and the discovery that the Context in the stack was incorrect.
the MSDN BBS, net friend MMDev in response to someone else’s post (http://social.msdn.microsoft.com/Forums/en-US/vcgeneral/thread/c3feab0f-601b-4ca6-beb2-8d4d615438cc/) gives a better solution:
in Visual Studio, the choice of the Debug | Exceptions menu items, in the pop-up dialog, check all the Win32 Exceptions to this exception is thrown in Win32, the program will interrupt, so you have the opportunity to () before the exception handling in the first time to see what happened in your own code error exception is thrown, so as to correct errors, eliminate hidden dangers in the program.
Read More:
- skypebridge.exe corrupted image error code 0xc000012f
- Error using xlsread (line 251) Excel Worksheet could not be activated.
- After matlab2017b is activated, open the error reporting license manager error – 8
- Event resolution of component {b3118b2-1f49-48e5-b6f5-bc21caec56fb}
- Spring ApplicationContext – Resource leak: ‘context’ is never closed
- Mac — Open keyboard F1 – F12 function key
- Docker command error during connect: get http://2F2F.2Fpipe2Fdocker_ engine/v1.36/containers/json: open//.
- Docker encountered a problem 4: yaml: Line 1: mapping values are not allowed in this context
- To solve the problem that fastcgi process often fails recently, an unknown fastcgi error occurs
- In vs programming, the code of Ctrl + F5 is flashback
- There is an unhandled exception at: 0xc0000005: an access conflict occurred while reading location 0x00000000.
- Quartus ii 13.1 compilation does not pass: Error (119013): Current license file does not support the EP4CE10F17C8 device
- [solved] runtimeerror: module compiled against API version 0xc but this version of numpy is 0xb
- ‘break’ not in the ‘loop’ or ‘switch’ context Error (Fixed)
- It will appear as soon as it is turned on BTServer.exe -Application error (0xc0150002)
- Stm32f107 kernel file — stm32f10x. H
- Unity2019.1.02f error cs0104: ‘minattribute’ is an ambiguous reference between
- Activation of network connection fail
- Error in activation of Navicat premium register
- [math processing error] problem solving (the difference between F5 refresh page and Ctrl / shift + F5 refresh page)