Contour is hogging CPU after form activate
Posted: Wed Dec 01, 2004 7:21 pm
I found an interesting bug in TeeChart v1.1.1769.19457.
I first thought the bug was something in our code, but then I did a test using Steema's "ExecutableDemo" and the same thing happened. That leads me to believe it is a bug in TeeChart.
I am using the latest version of TeeChart (v1.1.1769.19457) and I am running on Windows Server 2003 with .NET Framework v1.1 SP1.
Here is how to reproduce the situation:
- start Windows Task Manager, and sort by CPU descending (So those processes with the highest CPU usage are listed at the top).
- start some other windows app (I was able to reporoduce the problem using both Windows Explorer and MSN Messenger)
- start TeeChartNetExamples.exe
- click on the 'All Features' tab, then expand 'Chart Styles\Extended\Contour'
- click on the "2D drawing"
- in the task bar, click on the other windows app so it becomes active
- now, while watching Task Manager, click on TeeChartNetExamples.exe in the task bar so it becomes active. The app is activated - but look at the CPU usage. It consumes approximately 50% of the CPU and continues to do so (I let it run for several seconds and it never stopped ...)
This doesn't appear to happen with any other style - only the Contour style. I'm not sure what is going on, but it appears that the Contour style is doing something when the form is activated - something that is hogging the CPU and stalling the process.
I first thought the bug was something in our code, but then I did a test using Steema's "ExecutableDemo" and the same thing happened. That leads me to believe it is a bug in TeeChart.
I am using the latest version of TeeChart (v1.1.1769.19457) and I am running on Windows Server 2003 with .NET Framework v1.1 SP1.
Here is how to reproduce the situation:
- start Windows Task Manager, and sort by CPU descending (So those processes with the highest CPU usage are listed at the top).
- start some other windows app (I was able to reporoduce the problem using both Windows Explorer and MSN Messenger)
- start TeeChartNetExamples.exe
- click on the 'All Features' tab, then expand 'Chart Styles\Extended\Contour'
- click on the "2D drawing"
- in the task bar, click on the other windows app so it becomes active
- now, while watching Task Manager, click on TeeChartNetExamples.exe in the task bar so it becomes active. The app is activated - but look at the CPU usage. It consumes approximately 50% of the CPU and continues to do so (I let it run for several seconds and it never stopped ...)
This doesn't appear to happen with any other style - only the Contour style. I'm not sure what is going on, but it appears that the Contour style is doing something when the form is activated - something that is hogging the CPU and stalling the process.