Crash when unloading on win10 x64

TeeChart for ActiveX, COM and ASP
Post Reply
klilleby
Newbie
Newbie
Posts: 1
Joined: Mon Oct 01, 2018 12:00 am

Crash when unloading on win10 x64

Post by klilleby » 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

Code: Select all

void CMainFrame::OnFileClose()
{
  CoFreeUnusedLibraries();
}
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.

Yeray
Site Admin
Site Admin
Posts: 9613
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Crash when unloading on win10 x64

Post by Yeray » Tue Feb 05, 2019 12:11 pm

Hello,

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.
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Post Reply