Page 1 of 1
'0' is not a valid value for 'Value' exception
Posted: Fri Nov 04, 2005 7:27 am
by 9088874
Hi
When I use the chart editor, as soon as I double click a series to edit it, I get the following exception:
Exception of type "System.ArgumentException"
'0' is not a vaid value for 'Value'. 'Value' should be between 'Minimum' and 'Maximum'.
I have filled the series with values via code.
Any ideas?
Regards
Reg
More info
Posted: Fri Nov 04, 2005 8:05 am
by 9088874
Hi
I have a number of series on my chart, some of them are arrow series, some are line or point series.
I don't get this problem when double-clicking on the line or point series, ONLY on the arrow series.
How do I send you the saved .TEN File?
Regards
Reg
[/img]
Posted: Fri Nov 04, 2005 8:51 am
by narcis
Hi Reg,
Which TeeChart version are you using? It works fine here using latest v2
Debug Build version available.
You can post your files at [url]news://
www.steema.net/steema.public.attachments[/url] newsgroup.
More info on the editing arrow series problem
Posted: Wed Nov 09, 2005 8:42 am
by 9088874
Hi
I've sent two .ten files to you via the newsgroup you gave.
ViewTemplate.ten contains three arrow series.
ViewTemplatePoint.ten was obtained from the first by changing the arrow series into point series.
If I load ViewTemplate.ten (using the Import feature) and then "Show Editor" and then double-click on any of the arrow series to edit them, an error is produced. See below.
If I do the exact same thing with ViewTemplatePoint.ten (which has no arrow series) then everything is OK.
This looks like a bug to me.
Any suggested workarounds?
I am using the released V2 version (2.0.2040.15119). I am reluctant to use a beta version. Please will you confirm that you do get this error with the released version and not with the beta version.
Regards
Reg Bust
System.Reflection.TargetInvocationException: Exception has been thrown by the
target of an invocation. ---> System.ArgumentException: '0' is not a valid value for
'Value'. 'Value' should be between 'Minimum' and 'Maximum'.
at System.Windows.Forms.NumericUpDown.set_Value(Decimal value)
at Steema.TeeChart.Editors.Series.ArrowSeries..ctor(Series s)
--- End of inner exception stack trace ---
at System.Reflection.RuntimeConstructorInfo.InternalInvoke(BindingFlags
invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean
isBinderDefault)
at System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr,
Binder binder, Object[] parameters, CultureInfo culture)
at System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder
binder, Object[] args, CultureInfo culture, Object[] activationAttributes)
at System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder
binder, Object[] args, CultureInfo culture, Object[] activationAttributes)
at Steema.TeeChart.Editors.SeriesEditor.ShowSeriesForm(Int32 index)
at Steema.TeeChart.Editors.SeriesEditor..ctor(Series s, Control parent)
at Steema.TeeChart.Editors.ChartEditor.CBSeries_SelectedIndexChanged(Object
sender, EventArgs e)
at System.Windows.Forms.ComboBox.OnSelectedIndexChanged(EventArgs e)
at System.Windows.Forms.ComboBox.set_SelectedIndex(Int32 value)
at Steema.TeeChart.Editors.ChartEditor.tabControl1_SelectedIndexChanged(Object
sender, EventArgs e)
at System.Windows.Forms.TabControl.OnSelectedIndexChanged(EventArgs e)
at System.Windows.Forms.TabControl.set_SelectedIndex(Int32 value)
at System.Windows.Forms.TabControl.set_SelectedTabInternal(TabPage value)
Posted: Wed Nov 09, 2005 12:02 pm
by narcis
Hi I-Maps,
Thanks for the .ten files. We have been able to reproduce the problem here using your files but it works fine when we create a new application, export the chart and importing it again. Could you please send us an example we can run "as-is" to reproduce the problem here?
BTW: Which TeeChart version are you using?