It is my understanding that SetLength creates an array that is managed by the garbage collector. My questions are :-

If I create an array of double's with SetLength, I won't have to call any function to deallocate it, right?

When is the array deallocated? After it goes out of scope? Or like the Java VM, which is indeterminate?

Thanks.