Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > What is the diference?

Reply
Thread Tools

What is the diference?

 
 
Bruno Piovan
Guest
Posts: n/a
 
      10-30-2003
Hi,
what is the diference between

daAdapter.Dispose
and
daAdapter = Nothing

???????????

daAdapter is a DataAdapter

thanks,
Bruno


 
Reply With Quote
 
 
 
 
Marina
Guest
Posts: n/a
 
      10-30-2003
In one you are explicitly calling the Dispose method that frees up all the
unmanaged resources.

In the other, you are setting your variable to Nothing, but unmanaged
resources are not freed.

However, you do not need to do either. Just make sure you close all your
connection you are using for queries.

"Bruno Piovan" <Send me SPAM please!> wrote in message
news:(E-Mail Removed)...
> Hi,
> what is the diference between
>
> daAdapter.Dispose
> and
> daAdapter = Nothing
>
> ???????????
>
> daAdapter is a DataAdapter
>
> thanks,
> Bruno
>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

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




Advertisments