|
Crash with contour charts |
Posted by Serge on Oct-25-2011 19:11 |
|
Hi,
Our program can display arbitrary data on a Contour chart. And we have found that some combinations of XYZ data may cause a stack overflow exception in chartdir50.dll, version 5.0.3.
I have modified the "cppdemo\\contour" sample to prove the crash is not caused by our code.
My modifications to "contour.cpp" are as follows.
1) Remove the existing declaration and initialization of the variables dataX, dataY, dataZ
2) And replace it with the following code
double dataX[29], dataY[29], dataZ[29];
for (int i = 0; i < 29; ++i)
{
dataX[i] = 4;
dataY[i] = 9;
dataZ[i] = 9;
}
3) Build and run under the debugger
4) The call to makeChart() method raises the following exceptions
First-chance exception at 0x10106e2d in contour.exe: 0xC00000FD: Stack overflow.
Unhandled exception at 0x10106e2d in contour.exe: 0xC00000FD: Stack overflow. |
Re: Crash with contour charts |
Posted by Peter Kwan on Oct-26-2011 02:18 |
|
Hi Serge,
We apologize very much for this problem. This is a known bug and is the same as the following issue:
http://www.chartdir.com/forum/download_thread.php?bn=chartdir_support&thread=1263971562
The issue is that ChartDirector will crash in a surface or contour chart if scattered data points are used, and there are more than 2 data points, but less than 2 distinct data points (that is - all the points are either NoValue points or at the same (x, y) position).
For 32-bit ChartDirector for C++ on Windows, there is an updated "chartdir50.dll" that can solve this problem:
http://www.advsofteng.com/cd_win32_503p4.zip
Hope this can help.
Regards
Peter Kwan |
Re: Crash with contour charts |
Posted by Serge on Oct-26-2011 10:52 |
|
Hi Peter,
Thank you for the updated DLL. I confirm that it fixes the crash for us.
Serge |
Re: Crash with contour charts |
Posted by Jeremy White on Mar-26-2012 23:10 |
|
Peter,
We've also ran into this issue (the new dll fixed it). When will there be a formal next
version?
Regards,
Jeremy. |
Re: Crash with contour charts |
Posted by Peter Kwan on Mar-27-2012 02:18 |
|
Hi Jeremy,
We are currently working on ChartDirector Ver 5.1, which will have this issue fixed. We already have a release candidate for the .NET and Java edition of ChartDirector, and are porting to other editions of ChartDirector. We expect all other editions of ChartDirector Ver 5.1 will be ready by Apr 2012.
Regards
Peter Kwan |
|