Print Page | Close Window

Chart Sample Problem

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Chart Control
Forum Description: Topics Related to Codejock Chart Control
URL: http://forum.codejock.com/forum_posts.asp?TID=24276
Printed Date: 21 November 2024 at 9:02am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Chart Sample Problem
Posted By: shshin
Subject: Chart Sample Problem
Date Posted: 17 March 2022 at 9:59pm
I'm running the ChartBrowser Sample(v20.2) and it hangs when selecting charts like Line Styles, Lines, Spline, etc. 
I checked and an infinite loop occurs in CXTPChartDiagram2DAxisView::CreateTickMarks.

An overflow occurs here and it is changed to a negative value, resulting in an infinite loop.

CXTPChartDiagram2DAxisView::CreateTickMarks(
...
while (dMark < dAxisMaxValue + CXTPMathUtils::m_dEPS)
{
...
   
// Here it is changed to a negative value.  
dMark *= m_MarkCorrectionCoef;
dMark = CXTPMathUtils::Round(dMark);    
dMark /= m_MarkCorrectionCoef;
In this case, the values were:
double dViewMaxValue is 40431.5999
m_MarkCorrectionCoef is 1000000
dMark is 2852.516352 => 2852516352 => -2147483648.0000000  => -2147.4836479999999
This value is repeated over and over again.


 And when changing the chart style, the following exception occurs.(multiple lines)

Exception thrown at 0x00007FFFFEFC4F69 (KernelBase.dll) in ChartBrowser.exe: 0xE0000001 (parameters: 0xFFFFFFFF80004005).
Exception thrown at 0x00007FFFFEFC4F69 (KernelBase.dll) in ChartBrowser.exe: 0xE0000001 (parameters: 0xFFFFFFFF80004005).
Exception thrown at 0x00007FFFFEFC4F69 (KernelBase.dll) in ChartBrowser.exe: 0xE0000001 (parameters: 0xFFFFFFFF80004005).
Exception thrown at 0x00007FFFFEFC4F69 (KernelBase.dll) in ChartBrowser.exe: 0xE0000001 (parameters: 0xFFFFFFFF80004005).




Replies:
Posted By: astoyan
Date Posted: 20 March 2022 at 4:58am
It's been a known issue and it had been fixed for the next maintenance update v20.3 which will be release soon.

Regards,
   Alexander



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net