Page 1 of 1

Crash when unloading on win10 x64

Posted: Thu Jan 31, 2019 11:11 am
by 15684551
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

Code: Select all

void CMainFrame::OnFileClose()
Start the App
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.

Re: Crash when unloading on win10 x64

Posted: Tue Feb 05, 2019 12:11 pm
by yeray

What Visual Studio version are you using?
Could you please arrange a simple example project we can run as-is to reproduce the problem here?
Thanks in advance.