I encountered an infinite loop in the following code. It is taken from the Axis class.
do
{
tmp = iRange / tmpResult;
if (Math.Abs(tmp) < int.MaxValue)
{
tempNumLabels = Utils.Round(tmp);
if (tempNumLabels > maxNumLabels)
if (Logarithmic)
tmpResult = tmpResult * LogarithmicBase;
else
tmpResult = NextStep(tmpResult);
}
else
if (Logarithmic)
tmpResult = tmpResult * LogarithmicBase;
else
tmpResult = NextStep(tmpResult);
inf = double.IsInfinity(tmpResult);
} while ((tempNumLabels > maxNumLabels) && (tmpResult <= iRange) && (!inf));
I did not spend a lot of time debugging it. Please resolve.
WPF Chart Hangs in Infinite Loop
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi david,
Would you be so kind to send us a simple example project we can run "as-is" to reproduce the problem here?
You can either post your files at news://www.steema.net/steema.public.attachments newsgroup or at our upload page.
Thanks in advance.
Would you be so kind to send us a simple example project we can run "as-is" to reproduce the problem here?
You can either post your files at news://www.steema.net/steema.public.attachments newsgroup or at our upload page.
Thanks in advance.
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |
Re: WPF Chart Hangs in Infinite Loop
I am also using WPF version and my chart hangs once in a while and CPU usage remains at 25%. It happens 40% of the time.
Regards,
Vish
Regards,
Vish
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Re: WPF Chart Hangs in Infinite Loop
Hello Vish,
Can you please attach a simple project with which we can reproduce the problem here and debug it?
Thanks in advance.
Can you please attach a simple project with which we can reproduce the problem here and debug it?
Thanks in advance.
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |