Exception when calling editor (v4)

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
BlueM
Newbie
Newbie
Posts: 5
Joined: Tue May 26, 2009 12:00 am

Exception when calling editor (v4)

Post by BlueM » Wed May 27, 2009 1:16 pm

Hello,

we have just upgraded our application from using TeeChart v3.5 to TeeChart v4.0.2009.16184 and now get an exception when the Chart Editor is called at runtime using the code:

Code: Select all

Call Me.TChart1.ShowEditor()
Exception:
System.NullReferenceException: Object reference not set to an instance of an object.
at Steema.TeeChart.TChart.ChartComponentEditor.EditComponent(ITypeDescriptorContext context, Object aobject)
at Steema.TeeChart.TChart.ShowEditor(ITypeDescriptorContext context)
at Steema.TeeChart.TChart.ShowEditor()
This does not occur on the computer where TeeChart is installed and the application is compiled, but it does occur on a blank system with only the .NET Framework Runtime (v2) installed and the TeeChart.dll in the folder of the executing assembly. All other TeeChart functionality seems to be working fine...

Any ideas as to why this might occur?

Yeray
Site Admin
Site Admin
Posts: 9612
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Post by Yeray » Wed May 27, 2009 2:43 pm

Hi BlueM,

Could you please tell us the exact environment where you are reproducing this problem? Here it seems to work as expected.
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

BlueM
Newbie
Newbie
Posts: 5
Joined: Tue May 26, 2009 12:00 am

Post by BlueM » Wed Jun 03, 2009 3:18 pm

9348257 wrote: Could you please tell us the exact environment where you are reproducing this problem? Here it seems to work as expected.
The system is a Windows XP SP3, if that's what you wanted to know.

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

Post by Narcís » Thu Jun 04, 2009 12:18 pm

Hi BlueM,

I'm not able to reproduce the issue here using the same TeeChart build as you and deploying TeeChart.dll and application's .exe to another machine. Could you please send us a simple example project we can build and reproduce the issue 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
Image Image Image Image Image Image
Instructions - How to post in this forum

mckayj
Newbie
Newbie
Posts: 3
Joined: Wed Jun 03, 2009 12:00 am

Re: Exception when calling editor (v4)

Post by mckayj » Thu Jul 02, 2009 2:25 pm

I have come across the same problem.
However, I have found a solution that seems to work on a test application I whipped up to help me resolve the issue.

Try this:

Code: Select all

Steema.TeeChart.Editor.Show(tGraph)
where "tGraph" is the name of your TeeChart Graphing object.

Hope this helps, and good luck.

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

Re: Exception when calling editor (v4)

Post by Narcís » Thu Jul 02, 2009 3:28 pm

Hi mckayj,

As you may have already read in this thread, we haven't been able to reproduce the issue here so far. Could you please attach a simple example project we can run "as-is" to reproduce the problem here so that we can try debug the problem and try to find a solution?

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
Image Image Image Image Image Image
Instructions - How to post in this forum

mckayj
Newbie
Newbie
Posts: 3
Joined: Wed Jun 03, 2009 12:00 am

Re: Exception when calling editor (v4)

Post by mckayj » Thu Jul 02, 2009 3:41 pm

As requested, I have uploaded my Tee Chart Test Application: "TeeChartTestApp.zip"
The ".ShowEditor" call works on the computer on which the program is compiled, but when running/installing on other PCs, it does not work.
However, the "Steema.TeeChart.Editor.Show(tGraph)" call does work.
(Program was written in VB.NET, 2008)

Hope it helps.

BlueM
Newbie
Newbie
Posts: 5
Joined: Tue May 26, 2009 12:00 am

Re: Exception when calling editor (v4)

Post by BlueM » Fri Jul 03, 2009 7:52 am

mckayj wrote: Try this:

Code: Select all

Steema.TeeChart.Editor.Show(tGraph)
Thanks mckayj! Your trick works for me too!

mckayj
Newbie
Newbie
Posts: 3
Joined: Wed Jun 03, 2009 12:00 am

Re: Exception when calling editor (v4)

Post by mckayj » Fri Jul 03, 2009 12:59 pm

Glad to help.

Yeray
Site Admin
Site Admin
Posts: 9612
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Exception when calling editor (v4)

Post by Yeray » Mon Jul 06, 2009 2:40 pm

Hi BlueM and mckayj,

I could reproduce the issue with mckayj's project and I've added it to the wish list to be fixed in future releases (TF02014276).
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Post Reply