Crash in CoUnitialize when using UI Automation

  • Thread starter Thread starter Alan Martin IRL
  • Start date Start date
A

Alan Martin IRL

Guest
Hi,

We have a large MFC application. We are currently going though the process of updating our compiler from MSVC 2013 to MSVC 2017, and MFC from version 120 to version 140.

Unfortunately, we are seeing a crash on shutdown whenever any tool is controlling the application using the UI Automation API.


The stack trace is below, any help would be appreciated.


oleacc.dll!AccWrap_Base::Release(void)
UIAutomationCore.dll!STATrackedObject::ReleaseContainedInterface(void)
UIAutomationCore.dll!CApartmentTracker::PreUninitialize(unsigned long)
[Inline Frame] combase.dll!NotifyInitializeSpies(int) Line 3196
at onecore\com\combase\class\compobj.cxx(3196)
combase.dll!CoUninitialize() Line 3952
at onecore\com\combase\class\compobj.cxx(3952)
ole32.dll!OleUninitialize() Line 579
at com\ole32\ole232\base\ole2.cpp(579)
mfc140ud.dll!AfxOleTerm(int bJustRevoke) Line 122
at d:\agent\_work\3\s\src\vctools\vc7libs\ship\atlmfc\src\mfc\oleinit.cpp(122)
mfc140ud.dll!AfxOleTermOrFreeLib(int bTerm, int bJustRevoke) Line 136
at d:\agent\_work\3\s\src\vctools\vc7libs\ship\atlmfc\src\mfc\oleinit.cpp(136)
mfc140ud.dll!AfxWinTerm() Line 47
at d:\agent\_work\3\s\src\vctools\vc7libs\ship\atlmfc\src\mfc\appterm.cpp(47)
mfc140ud.dll!AfxWinMain(HINSTANCE__ * hInstance, HINSTANCE__ * hPrevInstance, wchar_t * lpCmdLine, int nCmdShow) Line 62
at d:\agent\_work\3\s\src\vctools\vc7libs\ship\atlmfc\src\mfc\winmain.cpp(62)

Continue reading...
 

Similar threads

Back
Top