Freeing Dynamic Arrays

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • headware

    Freeing Dynamic Arrays

    Do you have to manually release memory allocated by creating a dynamic
    array using ReDim? In other words, if I have the following code:

    ReDim Test(1000)
    For i = 0 To 1000
    Test(i) = "test value " & i
    Next

    Do have I have set Test = Nothing to prevent a memory leak?

    Thanks,
    Dave
Working...