What is the diference?

Discussion in 'ASP .Net' started by Bruno Piovan, Oct 30, 2003.

  1. Bruno Piovan

    Bruno Piovan Guest

    Hi,
    what is the diference between

    daAdapter.Dispose
    and
    daAdapter = Nothing

    ???????????

    daAdapter is a DataAdapter

    thanks,
    Bruno
    Bruno Piovan, Oct 30, 2003
    #1
    1. Advertising

  2. Bruno Piovan

    Marina Guest

    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:...
    > Hi,
    > what is the diference between
    >
    > daAdapter.Dispose
    > and
    > daAdapter = Nothing
    >
    > ???????????
    >
    > daAdapter is a DataAdapter
    >
    > thanks,
    > Bruno
    >
    >
    Marina, Oct 30, 2003
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. aa

    Why diference numbers

    aa, Feb 6, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    300
    Chris Jackson
    Feb 6, 2004
  2. Paulo

    Whats diference?

    Paulo, Oct 10, 2007, in forum: ASP .Net
    Replies:
    7
    Views:
    423
    Mark Rae [MVP]
    Oct 10, 2007
  3. jonathan castro

    diference between signal and variable?

    jonathan castro, May 20, 2008, in forum: VHDL
    Replies:
    1
    Views:
    491
    jeppe
    May 20, 2008
Loading...

Share This Page