TeeChart.NET 3.0: NullReferenceException in TeeChart.dll

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
cjherasmus
Newbie
Newbie
Posts: 10
Joined: Mon Aug 27, 2007 12:00 am

TeeChart.NET 3.0: NullReferenceException in TeeChart.dll

Post by cjherasmus » Thu Mar 06, 2008 2:48 pm

Good Day,

I'm using Visual Studio 2005 with C# in a scientific application with Infragistics NetAdvantage 2008 Volume 1 (Front-End) and Steema TeeChart.NET 3.0 (Graphs and Diagrams) third party software (fully licensed).

After much trial and error we've standarized on a specific front-end design for this specific type of business, which relies heavily on the UltraDockManager and UltraToolbarsManager controls and forms the critical part of the design. During the placement of the UltraToolbarsManager on the Form, a "Fill_Panel" is created which will contain other controls. One of these controls is a tChart control from Steema TeeChart.NET.

If the tChart control is placed within the boundary of the "Fill_Panel" without docking, the application behaves normal and correct when the Form is closed.

If the tChart control is placed within the boundary of the "Fill_Panel" with Dock set to Fill or any of the other options, the application produces a "A first chance exception of type 'System.NullReferenceException' occurred in TeeChart.dll", when the Form is closed.

As I don't know with which control the problem is, I'm sending this request for both Infragistics and Steema. I need help in figuring out if the problem is with the TeeChart control or with the Infragistics controls. I cannot emphasize the importance of these controls working together. Our whole solution depends on this one critical situation.

When the application is executed by running the exe outside VStudio, there doesn't seem to be a problem, but I need to be sure.

This was not a problem when we used Steema TeeChart.NET 1.1 and Infragistics NetAdvantage 2006 Volume 3.

Sample code uploaded (TestApplication.exe)

Regards,
Casper JH Erasmus

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 Mar 07, 2008 8:54 am

Hello Casper,

Thanks for the information and example project.

I downloaded the trial version of the Infragistics components to be able to run your example here. I used latest TeeChart for .NET v3 maintenance release available at the client area and couldn't reproduce the issue here. Which TeeChart for .NET v3 version are you using?

If I understood this correctly running your example project "as-is" should be enough to reproduce the problem, shouldn't it? Do I need to follow any specific step?

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

cjherasmus
Newbie
Newbie
Posts: 10
Joined: Mon Aug 27, 2007 12:00 am

Post by cjherasmus » Fri Mar 07, 2008 9:21 am

Narcis,

please run the project solution from within VS 2005. Everything compiles correctly. When the form is displayed click the form's close button. The code will stop executing at the "Dispose" method of the form. This is where I pick up the problem. If the exe is run outside VS2005 there doesn't seem to be a problem, only when I run it from the VS 2005 IDE.

Thanks

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 Mar 07, 2008 9:27 am

Hi Casper,

Thanks for the information. That's what I did exactly. I tried it again but I'm not able to reproduce the problem here. Would you be so kind to confirm the TeeChart version you are using?

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

cjherasmus
Newbie
Newbie
Posts: 10
Joined: Mon Aug 27, 2007 12:00 am

Post by cjherasmus » Fri Mar 07, 2008 9:40 am

Narcis,

apologies for letting that slip. I'm using version 3.2.2831.26851.

Regards,

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 Mar 07, 2008 10:13 am

Hi Casper,

Thanks for the information. As you can read in the release notes, this is quite and old version. A number of maintenance releases have been release since build 3.2.2831.26851 was published.

Could you please try reproducing the problem using the latest maintenance release available?

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

cjherasmus
Newbie
Newbie
Posts: 10
Joined: Mon Aug 27, 2007 12:00 am

Post by cjherasmus » Fri Mar 07, 2008 12:18 pm

Narcis,

I've downloaded the latest version and tested the application again. This time I couldn't reproduce the error. It seems that my controls are working together now. Thank you for all your effort.

Would it be possible to receive a news letter or something similar to notify me if newer updates has been posted. It's not always possible for me to watch the forums, on a continuous basis.

Thank you
Regards

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 Mar 07, 2008 12:20 pm

Hi Casper,

Thanks for your collaboration. I'm glad to hear that.

Yes, you can subscribe to our RSS feed.
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