PC Review


Reply
Thread Tools Rate Thread

Dispose table

 
 
=?Utf-8?B?d2Fuc2No?=
Guest
Posts: n/a
 
      7th Jul 2005
Hi,

i read in newsgroups and hints, that everthing wich has a dispose() method
should
be disposed.
Is this true for tables and columns both have a dispose() method.

Thanks for reply

wansch
 
Reply With Quote
 
 
 
 
Cor Ligthert [MVP]
Guest
Posts: n/a
 
      7th Jul 2005
Wanch,

> i read in newsgroups and hints, that everthing wich has a dispose() method
> should be disposed.


Yes especially labels. They did not make that dispose for nothing.

I am not serious in this before you misunderstand me.

20% of all classes have the dispose and those are probably the classes that
are used for 80%.

I don't know any class where dispose has really extra sence in AdoNet (or it
should be instead of the close for a connection).

Cor


 
Reply With Quote
 
Miha Markic [MVP C#]
Guest
Posts: n/a
 
      7th Jul 2005
If you want to be on the safe-side, then yes, you should dispose everything
that implements IDisposable.

--
Miha Markic [MVP C#] - RightHand .NET consulting & development
www.rthand.com
Blog: http://cs.rthand.com/blogs/blog_with_righthand/
SLODUG - Slovene Developer Users Group www.codezone-si.info

"wansch" <(E-Mail Removed)> wrote in message
news:32028158-AFBB-4F9C-9564-(E-Mail Removed)...
> Hi,
>
> i read in newsgroups and hints, that everthing wich has a dispose() method
> should
> be disposed.
> Is this true for tables and columns both have a dispose() method.
>
> Thanks for reply
>
> wansch



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Does DataGridView.Dispose Call DataGridViewRow.Dispose? eBob.com Microsoft VB .NET 13 31st Jul 2009 02:08 PM
Dispose Pattern -- why void Dispose() is nonvirtual? gz Microsoft Dot NET 2 24th Jan 2008 08:18 PM
Table adapters dispose themselves? dgk Microsoft ASP .NET 4 17th Oct 2007 01:54 PM
Form.Dispose does not invoke InputPanel.Dispose tomj@softhome.net Microsoft Dot NET Compact Framework 3 24th Jan 2006 03:28 PM
the difference betweenSqlConnection.IDisposable.Dispose() andSqlConnection.Dispose(). tangyong Microsoft Dot NET Framework 1 20th Jan 2006 04:53 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:56 PM.