'0' is not a valid value for 'Value' exception

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
I-Maps
Newbie
Newbie
Posts: 15
Joined: Fri Oct 21, 2005 4:00 am
Location: South Africa

'0' is not a valid value for 'Value' exception

Post by I-Maps » Fri Nov 04, 2005 7:27 am

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

I-Maps
Newbie
Newbie
Posts: 15
Joined: Fri Oct 21, 2005 4:00 am
Location: South Africa

More info

Post by I-Maps » Fri Nov 04, 2005 8:05 am

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]

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Fri Nov 04, 2005 8:51 am

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.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

I-Maps
Newbie
Newbie
Posts: 15
Joined: Fri Oct 21, 2005 4:00 am
Location: South Africa

More info on the editing arrow series problem

Post by I-Maps » Wed Nov 09, 2005 8:42 am

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)

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Wed Nov 09, 2005 12:02 pm

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?
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply