Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - XTPChartAxisView changes cause endless loop
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

XTPChartAxisView changes cause endless loop

 Post Reply Post Reply
Author
Message
BobC View Drop Down
Groupie
Groupie


Joined: 28 April 2017
Location: Longmont, CO
Status: Offline
Points: 55
Post Options Post Options   Thanks (0) Thanks(0)   Quote BobC Quote  Post ReplyReply Direct Link To This Post Topic: XTPChartAxisView changes cause endless loop
    Posted: 08 June 2022 at 5:14pm
The code changes to XTPChartAxisView of 20.2.0 cause an endless loop.

Between version 20.1.0 and 20.2.0 (I don't have 20.3, so cannot say if something else changed), file XTPChartAxisView.cpp underwent significant changes. Specifically, the CreateTickMarks() method had three lines of code added within the loop that begins with "while (dMark < dAxisMaxValue + CXTPMathUtils::m_dEPS)" at line 1420 and those lines are:

dMark *= m_MarkCorrectionCoef;
dMark = CXTPMathUtils::Round(dMark);
dMark /= m_MarkCorrectionCoef;

With the addition of those three lines and whatever else the changes do, that loop is where my program gets stuck; that "while" loop is never exited. With 20.1.0 and earlier, the endless loop does not happen.

I do not have a sample program to give you because it would probably take at least 3-4 hours to come up with a data routine and sample program to take the place of the PostgreSQL database values currently used.

Back to Top
Pesci7 View Drop Down
Groupie
Groupie
Avatar

Joined: 27 January 2021
Location: Italy
Status: Offline
Points: 16
Post Options Post Options   Thanks (0) Thanks(0)   Quote Pesci7 Quote  Post ReplyReply Direct Link To This Post Posted: 10 June 2022 at 5:47am
It is fixed in latest version.

You can remove that three lines of code and any reference of "m_MarkCorrectionCoef" from XTPChartAxisView.cpp and XTPChartAxisView.h
Product: Xtreme ToolkitPro (22.1.0)
Platform: Windows 11 (x64)
Language: Visual Studio 2022 (C++)
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.156 seconds.