Application still running in Task Manager after exiting
Posted: 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?
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?