|
problem with chartdir50 in C++ Win32 Release |
Posted by Pascal on Feb-26-2011 00:12 |
|
Hello,
We developped a software in C / C++ using chartdir50.dll to plot histogramms, curves ... Everything works perfectly when our soft is compiled in Win32 Debug (Visual Studio 2010 on WinXP & Win7) whereas, with a compilation in Release mode, the software bugs as soon as we try to plot a chartdirector object.
It is probably linked to chartdirector because without any chartdir object the soft (in release) works fine, whereas it stops to work with the plot of the first chartdir object.
What is the problem ? Do different versions of chartdir50.dll exist (debug and release) ?
Thank you very much in advance for your help !
Best Regards,
Pascal (from France) |
Re: problem with chartdir50 in C++ Win32 Release |
Posted by Peter Kwan on Feb-26-2011 01:31 |
|
Hi Pascal,
There are many reasons why some code works in debug mode but not in release mode. One common reason is uninitialized data. In C++, in debug mode, many of the C++ variables will be initialized to 0 by the debugging environment. However, in release mode, uninitialized variables will contain random numbers. So the code may work in debug mode but not in release mode.
To debug the problem, you may comment out the code that configures the chart and feeds data to the chart to see if it can avoid the crash. This may help to identify the cause of the problem.
If you need further help, is it possible to inform me the charting part of your code?
Regards
Peter Kwan |
|