TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
-
BlueM
- Newbie
- Posts: 5
- Joined: Tue May 26, 2009 12:00 am
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:
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
- 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.
-
BlueM
- 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
- 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.
-
mckayj
- Newbie
- Posts: 3
- Joined: Wed Jun 03, 2009 12:00 am
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
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
-
Contact:
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.
-
mckayj
- Newbie
- Posts: 3
- Joined: Wed Jun 03, 2009 12:00 am
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
- Posts: 5
- Joined: Tue May 26, 2009 12:00 am
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
- Posts: 3
- Joined: Wed Jun 03, 2009 12:00 am
Post
by mckayj » Fri Jul 03, 2009 12:59 pm
Glad to help.
-
Yeray
- Site Admin
- Posts: 9612
- Joined: Tue Dec 05, 2006 12:00 am
- Location: Girona, Catalonia
-
Contact:
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).