Results 1 to 2 of 2

Thread: Clean up at the end

  1. #1

    Thread Starter
    Member
    Join Date
    Jul 2002
    Posts
    32

    Clean up at the end

    Is it neccessary to set collections, hashtables, sortedlists, .... to nothing if they are no longer used ? Maybe at the end of a subroutine or in the closing event of the application ?

  2. #2
    PowerPoster hellswraith's Avatar
    Join Date
    Jul 2002
    Location
    Washington St.
    Posts
    2,464
    You can if you want, and probably should if they take up an abnormal amount of resources. It isn't neccessary though because when an object goes out of scope, it is the garbage collectors job to deal with it. It is even good about finding circular references if you have them.

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