Dispose table

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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
 
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
 
If you want to be on the safe-side, then yes, you should dispose everything
that implements IDisposable.
 
Back
Top