NullReferenceException on form close

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
Nick
Newbie
Newbie
Posts: 7
Joined: Fri Oct 19, 2007 12:00 am

NullReferenceException on form close

Post by Nick » Mon Nov 08, 2010 8:43 pm

Hello,

I'm programming in c# .net framework 2.0.

I have recently added a series of teecharts to a form and some are not in view (you need to scroll to see them). If you close the form before scrolling to see the chart, I get this exception from the form1.designer.cs page on this function:

Code: Select all

protected override void Dispose(bool disposing)
{
       if (disposing && (components != null))
       {
           components.Dispose();
       }
       base.Dispose(disposing);   //<--------error here--------
}
I am almost certain everything is initialized properly. The form and charts work great otherwise. Any suggestions or help would be much appreciate.

Regards,

Nick

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

Re: NullReferenceException on form close

Post by Narcís » Tue Nov 09, 2010 8:11 am

Hi Nick,

Can you please attach a simple example project we can run "as-is" to reproduce the problem here?

Thanks in advance.

Aside. Footnote plaque, Support team, Steema Software. This post marks as the 50,000th post on the Steema forums!
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

Nick
Newbie
Newbie
Posts: 7
Joined: Fri Oct 19, 2007 12:00 am

Re: NullReferenceException on form close

Post by Nick » Tue Nov 09, 2010 1:44 pm

Hello,

I added the program "Error app" in the attachment.

Thanks

Nick
Attachments
ErrorApp.rar
(23.57 KiB) Downloaded 272 times

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

Re: NullReferenceException on form close

Post by Narcís » Tue Nov 09, 2010 2:26 pm

Hi Nick,

Thanks for the example project. I'm not able to reproduce the issue here using latest TeeChart for .NET v3 release available at the client area, which is buil 3.5.3700.30574/5. Which TeeChart version are you using? Which are the exact steps I should follow with the example project to reproduce the problem?

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

Nick
Newbie
Newbie
Posts: 7
Joined: Fri Oct 19, 2007 12:00 am

Re: NullReferenceException on form close

Post by Nick » Tue Nov 09, 2010 2:47 pm

We are using version 3 as well but I am not sure what build we are using.

With program, once it is started, then immediately closed without looking at the second graph, it goes to the dispose() function for the designer.cs and throws the null reference exception.

I will download and install the latest version of teechart and see what happens.

Thanks

Nick

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

Re: NullReferenceException on form close

Post by Narcís » Tue Nov 09, 2010 3:00 pm

Hi Nick,

Yes, please, give last version a go because I can't reproduce the issue here either in debug mode nor in release mode. I'm just executing the application and closing it without further action. I have checked the application goes successfully through the line you said the code crashed.
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

Nick
Newbie
Newbie
Posts: 7
Joined: Fri Oct 19, 2007 12:00 am

Re: NullReferenceException on form close

Post by Nick » Tue Nov 09, 2010 3:31 pm

Hello,

I'm just waiting on an email to get my customer number because I misplaced mine. I was, however, able to find the current build that I am using.

Build 3.2.2574.30545

Nick

Nick
Newbie
Newbie
Posts: 7
Joined: Fri Oct 19, 2007 12:00 am

Re: NullReferenceException on form close

Post by Nick » Tue Nov 09, 2010 5:02 pm

Hello Narcís,

I updated the dll and teechart and it now works! Thank you for your help. It was much appreciated.


Regards,

Nick

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

Re: NullReferenceException on form close

Post by Narcís » Wed Nov 10, 2010 8:11 am

Hi Nick,

You're very welcome, I'm glad to hear that.
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