Crash when unloading on win10 x64
Posted: Thu Jan 31, 2019 11:11 am
I use the Teechart Pro Ax component in an MFC project. After upgrading to teechart 2017 AX, and porting to 64-bit, we experience crash on win10 (not on win7).
I managed to isolate the problem, and you should be able to reproduce it with Visual Studio:
1. Use MFC wizard to create new MDI app
2. Add CTChart and CTeeEditor to the View and create them as usual.
3. Add ID_FILE_CLOSE handler in MainFrm to call
Start the App
Select File->close a couple of times and
I managed to isolate the problem, and you should be able to reproduce it with Visual Studio:
1. Use MFC wizard to create new MDI app
2. Add CTChart and CTeeEditor to the View and create them as usual.
3. Add ID_FILE_CLOSE handler in MainFrm to call
Code: Select all
void CMainFrame::OnFileClose()
{
CoFreeUnusedLibraries();
}
Select File->close a couple of times and
Code: Select all
'SPTChartMDITest.exe' (Win32): Unloaded 'D:\SPTChart\x64\Debug\TeeChart201764.ocx'
Exception thrown at 0x0000000000540200 in SPTChartMDITest.exe: 0xC0000005: Access violation executing location 0x0000000000540200.