Page 1 of 1

Exception when calling editor (v4)

Posted: Wed May 27, 2009 1:16 pm
by 15653373
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?

Posted: Wed May 27, 2009 2:43 pm
by yeray
Hi BlueM,

Could you please tell us the exact environment where you are reproducing this problem? Here it seems to work as expected.

Posted: Wed Jun 03, 2009 3:18 pm
by 15653373
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.

Posted: Thu Jun 04, 2009 12:18 pm
by narcis
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.

Re: Exception when calling editor (v4)

Posted: Thu Jul 02, 2009 2:25 pm
by 16053429
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.

Re: Exception when calling editor (v4)

Posted: Thu Jul 02, 2009 3:28 pm
by narcis
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.

Re: Exception when calling editor (v4)

Posted: Thu Jul 02, 2009 3:41 pm
by 16053429
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.

Re: Exception when calling editor (v4)

Posted: Fri Jul 03, 2009 7:52 am
by 15653373
mckayj wrote: Try this:

Code: Select all

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

Re: Exception when calling editor (v4)

Posted: Fri Jul 03, 2009 12:59 pm
by 16053429
Glad to help.

Re: Exception when calling editor (v4)

Posted: Mon Jul 06, 2009 2:40 pm
by yeray
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).