In a portion of my code I do something like this:

do
        Dim myOBJ As myClass = New myClass
        myArray.Append myOBJ
loop ...

myArray is an array of myClass.

The problem is that when I need to dispose the array I have tried both:
redim myArray(-1)

and

for i=0 to UBound(myArray)
        myArray.(i) = nil
next
redim myArray(-1)

but memory is never freed (i can see this in the Activity Monitor).

What I am doing wrong?
Any help?

---
Marco Bambini
http://www.sqlabs.net
http://www.sqlabs.net/blog/



_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to