Page 1 of 1

Application still running in Task Manager after exiting

Posted: Wed Nov 30, 2016 12:42 am
by 16677938
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?

Re: Application still running in Task Manager after exiting

Posted: Wed Nov 30, 2016 9:47 am
by yeray
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?

Re: Application still running in Task Manager after exiting

Posted: Thu Feb 23, 2017 9:07 pm
by 16677938
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.

Re: Application still running in Task Manager after exiting

Posted: Fri Feb 24, 2017 8:29 am
by yeray
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.