collection

I

iccsi

I declared a collection in my code like following

Dim MyCollection as Collection

Set MyCollection = new Collection


I just wonder should I set MyCollection in the end of program. Does MS
Access free those memory for collection.


Your help is great appreicated,
 
P

Piet Linden

I declared a collection in my code like following

Dim MyCollection as Collection

Set MyCollection = new Collection

I just wonder should I set MyCollection in the end of program. Does MS
Access free those memory for collection.

Your help is great appreicated,

standard practice is to release/unset all pointer variables at the end
of your procedure...

set mycollection = nothing

which removes it from memory. Access doesn't handle releasing objects
when they go out of scope very well, so it's better to release
variable references for it.
 
I

inungh

standard practice is to release/unset all pointer variables at the end
of your procedure...

set mycollection = nothing

which removes it from memory.  Access doesn't handle releasing objects
when they go out of scope very well, so it's better to release
variable references for it.

Thanks millions for the message,
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top