Hi,
what is the diference between
daAdapter.Dispose
and
daAdapter = Nothing
?????
daAdapter is a DataAdapter
thanks,
BrunoIn 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:OSlsckznDHA.1708@.TK2MSFTNGP12.phx.gbl...
> Hi,
> what is the diference between
> daAdapter.Dispose
> and
> daAdapter = Nothing
> ?????
> daAdapter is a DataAdapter
> thanks,
> Bruno
Monday, March 12, 2012
What is the diference?
Labels:
asp,
betweendaadapter,
diference,
disposeanddaadapter,
net,
nothingdaadapter
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment