Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Chart Control
  New Posts New Posts RSS Feed - Chart Sample Problem
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Chart Sample Problem

 Post Reply Post Reply
Author
Message
shshin View Drop Down
Newbie
Newbie


Joined: 21 January 2022
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote shshin Quote  Post ReplyReply Direct Link To This Post Topic: Chart Sample Problem
    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).

Back to Top
astoyan View Drop Down
Admin Group
Admin Group
Avatar

Joined: 24 August 2013
Status: Offline
Points: 304
Post Options Post Options   Thanks (0) Thanks(0)   Quote astoyan Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.172 seconds.