Posted 2/17/2011 07:59:35
|
|
|
|
When I run an optimization I get the following error:
An exception of type System.ArgumentOutOfRangeException was thrown.
Value of '146' is not valid for 'Value'. 'Value' should be between 'minimum' and 'maximum'.
Parameter name: Value
at System.Windows.Forms.ProgressBar.set_Value(Int32 value)
at RightEdge.Shared.OptimizationProgressDialog.UpdateProgress(String overallText, Double overallProgress, String currentRunText, Double currentRunProgress)
at RightEdge.Shared.OptimizationRunner.<>c__DisplayClassd.b__c()
I use the optimization plug in that comes with RE.
Any ideas?
|
|
Posted 2/28/2011 02:50:59
|
|
|
|
Any thoughts? I cannot use it at the moment.
|
|
Posted 2/28/2011 09:52:40
|
|
|
|
What is the low value, high value, and number of steps for all your optimization parameters?
Thanks,
Daniel
|
|
Posted 2/28/2011 21:07:10
|
|
|
|
it does not matter. I tried one parm that was 90 to 220 step 10 and one that was 2 to 5 step 0.5
|
|
Posted 2/28/2011 22:28:49
|
|
|
|
Well it looks like the optimization plugin is saying it's 146% done, which is causing the error. I wasn't able to reproduce the issue and I don't see a math error in it.
Could you use the source code of the optimization plugin to modify it so that before calling UpdateProgress() it prints out the overall progress and current progress that it passes to UpdateProgress()? That should help find the issue.
Thanks,
Daniel
|
|
Posted 3/24/2011 01:28:56
|
|
|
|
I just commented out the line UpdateProgress(null, overallProgress + (currentRunProgress / totalRuns), currentRunProgressText, currentRunProgress);
And it works fine but no display text. That will do me for now.
I tired it on a blank system and got the error as well so not sure what is going on.
|
|
|
|