If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ASP > How important is to set object = nothing after using createObject method?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-02-03, 13:42
J_C J_C is offline
Registered User
 
Join Date: Aug 2003
Location: Canada
Posts: 6
How important is to set object = nothing after using createObject method?

Hello,

I've being working with ASP pages for a few months, but I was just learning ASP as I working with the pages.

I want to know once I used the "createObject" method, how important is it to set object = Nothing? I've being reading some articles saying that things created with createObject method has a page scope, so it will be gone when the page is close. However, some ppl says that it's best to set object= Nothing before leaving the page. So which of them is right? Would it cause memory leak if I don't set object = Nothing before I leave the page?

Thanks
Reply With Quote
  #2 (permalink)  
Old 10-02-03, 19:24
Seppuku Seppuku is offline
Useless...
 
Join Date: Jul 2003
Location: SoCal
Posts: 721
The answer is, it might... you don't know... since you didn't write the clean up code, can you be certain it will be destroyed? Better to do it yourself and ensure this doesn't happen then to let be a possibility
__________________
That which does not kill me postpones the inevitable.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On