Results 1 to 4 of 4

Thread: dispossing object

Threaded View

  1. #1

    Thread Starter
    Fanatic Member popskie's Avatar
    Join Date
    Jul 2005
    Location
    In my chair
    Posts
    666

    dispossing object

    Hi,

    What is the right time to call dispose,close(),set to null in every object.

    It is effecient to call like this.

    VB Code:
    1. if ( OBJECT != null)
    2. {
    3. OBJECT .Close();
    4. OBJECT .Dispose();
    5. OBJECT =null;
    6. }

    and what object type need to be dispose?

    Thanks ,

    POpskie

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width