I have an array allocated like this:
MyArray : Variant;
MyArray := VarArrayCreate([0, MaxRows, 0, MaxCols], varOleStr);
As it can be seen, it is a two dimensional array.
Is [code]Finalize(MyArray)[/code] enough to free this "two-dimensional" array?
As a second general question, is there an automatic garbage collection mechanism in Delphi? That is, should we care about deallocation of memory after use?