Application still running in Task Manager after exiting

TeeChart for ActiveX, COM and ASP
Post Reply
nbp
Newbie
Newbie
Posts: 15
Joined: Fri Apr 01, 2016 12:00 am

Application still running in Task Manager after exiting

Post by nbp » Wed Nov 30, 2016 12:42 am

We are experiencing a problem with TChart2015.ocx that we did not experience with our previous version TChart7.ocx

We create charts dynamically at runtime with the following piece of code:

CTChart* pChart = new CTChart();


We are using Visual Studio 2013, C++.

When our application exits, we find that the process (.exe) is still running in the Task Manager. This happens only after our application has displayed a tab with a TChart component on it. There are other features in our application that don’t involve TChart. When we use those, we don’t see the process still running in the task manager.

It is as if the ocx has not been released. Should we be doing something in the code explicitly to release the ocx so that our application can exit properly?

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

Re: Application still running in Task Manager after exiting

Post by Yeray » Wed Nov 30, 2016 9:47 am

Hello,
nbp wrote:We are experiencing a problem with TChart2015.ocx that we did not experience with our previous version TChart7.ocx
Could you please try if this still happens with the latest version available, v2016.0.0.2?
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

nbp
Newbie
Newbie
Posts: 15
Joined: Fri Apr 01, 2016 12:00 am

Re: Application still running in Task Manager after exiting

Post by nbp » Thu Feb 23, 2017 9:07 pm

I fixed this issue on my side finally by adding an AfxOleTerm(FALSE) statement in my ExitInstance(). So I don't have a locked process anymore and I'm good for now but I'm still curious to know what was happening and what was being locked up by the TChart ocx.

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

Re: Application still running in Task Manager after exiting

Post by Yeray » Fri Feb 24, 2017 8:29 am

Hello,

Have you checked if this looks related to GDIPlus (disabling it just after creating the chart)?
Adopting GDIPlus as the default Canvas is one of the major changes in "newer" TeeChart versions.
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