Quinn-Curtis Forums
Quinn-Curtis Forums
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Tools for Microsoft .Net
 SPC Control Chart Tools for .Net
 Stack Overflow in ParetoChart
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

chrism

USA
3 Posts

Posted - 26 Apr 2013 :  11:34:16  Show Profile  Reply with Quote
I am getting a stack overflow exception (An unhandled exception of type 'System.StackOverflowException' occurred in QCChart2DNet.dll) when attempting to build a pareto chart where all values are zero. If there are non-zero values the chart builds correctly.

It should be reproducible by doing a

Me.AddCategoryItem(0, "Category 1")
Me.AddCategoryItem(0, "Category 2")

and then attempting to build the chart.

I will handle this case in my code before I attempt to BuildChart, but just wanted to put it out there in case anyone else gets this.

Thanks,
Chris

quinncurtis

1586 Posts

Posted - 26 Apr 2013 :  11:45:21  Show Profile  Reply with Quote
The Pareto Chart by definition has to divide each value by the sum of all values in order to produce the cumulative percent value. So if you feed it invalid data (sum of all values equals 0) the results create a divide by 0 down the line.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Quinn-Curtis Forums © 2000-2018 Quinn-Curtis, Inc. Go To Top Of Page
Powered By: Snitz Forums 2000 Version 3.4.07