Setting objects to Nothing

Results 1 to 3 of 3

Thread: Setting objects to Nothing

  1. #1
    Join Date
    Dec 1969

    Default Setting objects to Nothing

    So, should I *alway* set an object I have created back to nothing? MS doc says it&#039s optional, but I don&#039t know whether I should be good?<BR>What about in this case:?<BR><BR>Set objFSO = CreateObject("Scripting.FileSystemObject")<BR>...< BR>&#039Cleanup<BR>Set objFile = Nothing<BR>

  2. #2
    Corin Guest

    Default RE: Setting objects to Nothing

    Yes, IIS is not a very good garbage collector so setting obj to nothing saves resources

  3. #3
    Join Date
    Dec 1969

    Default RE: Setting objects to Nothing

    Don&#039t believe microsoft completely.. it is analogous to<BR>"minimum system" and "recommended system".<BR><BR>As a good coding practice one should always set objects to nothing when they are no longer of any use.<BR><BR>ciao<BR>kaustubh

Posting Permissions

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