ASE Home Page Products Download Purchase Support About ASE
ChartDirector Support
Forum HomeForum Home   SearchSearch

Message ListMessage List     Post MessagePost Message

  Increasing the number of lines for the real time zoom scroll chart
Posted by Justin on Dec-16-2015 04:36
using C++

When ever I try to increase the number of data lines from the initial 3 that the demo has
to 14 but end up with an assertion fail in the CWnd::Attach function around this line

ASSERT(FromHandlePermanent(hWndNew) == NULL);

It seems I am able to increase the number of lines to 4 and 5 without an issue but nothing
higher.
Can anyone give insight as to why this is?

  Re: Increasing the number of lines for the real time zoom scroll chart
Posted by Justin on Dec-16-2015 05:28
The fail happens before the realtimezoomscrollDlg init function is ever called.

  Re: Increasing the number of lines for the real time zoom scroll chart
Posted by Peter Kwan on Dec-17-2015 00:14
Hi Justin,

If the error occurs before realtimezoomscrollDlg OnInitDialog method call, I suspect the error
is caused by the way the data arrays are filled. For example, in C++, if the code fills the
data array outside the array bounds, it corrupts other object's data, but no error will occur.
Later when that object is used, the code crashes with strange errors.

To further diagnose the issue, please try to create an example that can reproduce the
issue. For example, you can modify the original realtimezoomscrollDlg sample code to include
6 data series instead of 3. If this can reproduce the issue, please zip the entire project and
email it to me. My email address is pkwan@advsofteng.net

Hope this can help.

Regards
Peter Kwan