Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
I'm running a huge model on VBA, and I think i'm leaking memory. In the following example, does the memory allocated for myInstance get freed when I remove it from the collection? I assume that, like java, once the memory is not referenced to, It gets deallocated. dim myCollection as Collection Set myCollection = new Collection dim myInstance as MyClass Set myInstance = new MyClass myCollection.add myInstance myCollection.remove 1 If the above does not free the memory, how do I do it? Also, does VBA have constructors? And destructors? Thanks. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
XL 2007 - Out of Memory - memory leak/bug? | Excel Discussion (Misc queries) | |||
Allocation | Excel Discussion (Misc queries) | |||
Allocation | Excel Worksheet Functions | |||
XLL Memory allocation problem | Excel Programming | |||
F-key allocation | Excel Discussion (Misc queries) |