Print Page | Close Window

XTPChartAxisView changes cause endless loop

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=24296
Printed Date: 20 April 2024 at 5:15am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: XTPChartAxisView changes cause endless loop
Posted By: BobC
Subject: XTPChartAxisView changes cause endless loop
Date 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.




Replies:
Posted By: Pesci7
Date 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++)



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