TeeChart Freezes With a Certain Dataset
Posted: Wed Nov 16, 2011 9:51 pm
Dear Steema,
The attached dataset is giving me problems in TeeChart v8.0.1.1 on an MFC application dialog built in VS2010. It appears to be related to the "Elevation" series, but I can't figure out what exactly the problem is.
Things I know:
1) My chart dialog freezes when opening, seemingly entering a non-terminating loop somewhere within TeeChart.
2) If I break into the loop my call stack says:
3) When displaying, the dialog gets to "OnBeforeDrawChart", but not to "OnBeforeDrawAxes" or "OnBeforeDrawSeries".
4) The "Elevation" series is normally displayed when the dialog opens. If I set this series inactive initially, the dialog displays OK, but will freeze if I try to turn the "Elevation" series back on.
5) If I edit the data and set the "Elevation" Y values to a small (non-zero) number (e.g. 0.01) the dialog displays OK. This suggests it might be some sort of maths related problem where zero is an issue (log(0))?
6) If I try to replicate the problem by loading the tee file in a simpler environment (VB6), the chart displays OK.
I'm at a loss as to how to debug this further - any suggestions?
The attached dataset is giving me problems in TeeChart v8.0.1.1 on an MFC application dialog built in VS2010. It appears to be related to the "Elevation" series, but I can't figure out what exactly the problem is.
Things I know:
1) My chart dialog freezes when opening, seemingly entering a non-terminating loop somewhere within TeeChart.
2) If I break into the loop my call stack says:
Code: Select all
TeeChart8.ocx!0e047d03()
[Frames below may be incorrect and/or missing, no symbols loaded for TeeChart8.ocx]
TeeChart8.ocx!0e048779()
TeeChart8.ocx!0e048a6c()
TeeChart8.ocx!0e04cefe()
TeeChart8.ocx!0e04ce60()
TeeChart8.ocx!0e04d043()
TeeChart8.ocx!0e05715c()
TeeChart8.ocx!0e057670()
TeeChart8.ocx!0e03ca68()
TeeChart8.ocx!0e03c80d()
TeeChart8.ocx!0e03cac2()
TeeChart8.ocx!0e014871()
TeeChart8.ocx!0e0106e4()
TeeChart8.ocx!0e010bb0()
TeeChart8.ocx!0e014809()
TeeChart8.ocx!0e00d4c7()
> mfc100d.dll!HashKey<CWnd *>(CWnd * key) Line 163 + 0xf bytes C++
mfc100d.dll!CMap<CWnd *,CWnd *,CHwndRenderTarget *,CHwndRenderTarget *>::GetAssocAt(CWnd * key, unsigned int & nHashBucket, unsigned int & nHashValue) Line 1537 + 0x9 bytes C++
mfc100d.dll!CMap<CWnd *,CWnd *,CHwndRenderTarget *,CHwndRenderTarget *>::Lookup(CWnd * key, CHwndRenderTarget * & rValue) Line 1559 + 0x14 bytes C++
4) The "Elevation" series is normally displayed when the dialog opens. If I set this series inactive initially, the dialog displays OK, but will freeze if I try to turn the "Elevation" series back on.
5) If I edit the data and set the "Elevation" Y values to a small (non-zero) number (e.g. 0.01) the dialog displays OK. This suggests it might be some sort of maths related problem where zero is an issue (log(0))?
6) If I try to replicate the problem by loading the tee file in a simpler environment (VB6), the chart displays OK.
I'm at a loss as to how to debug this further - any suggestions?