Auto cleanup of dynamic array of Trecord.DynamicArray when first is nilled ?
- From: "Skybuck Flying" <BloodyShame@xxxxxxxxxxx>
- Date: Mon, 26 May 2008 14:26:56 +0200
Hello,
Are dynamic arrays in dynamic array of records automatically cleaned up when
dynamic array of records is nilled ?
program Project1;
{$APPTYPE CONSOLE}
uses
SysUtils;
type
Ttest = record
mCode : array of byte;
end;
var
vArray : array of Ttest;
begin
try
SetLength( vArray, 10 );
SetLength( vArray[5].mCode, 5*1024*1024 );
vArray[5].mCode[0] := 6;
readln;
writeln( vArray[5].mCode[0] );
vArray := nil; // auto clean up of code ?
readln;
except
on E:Exception do
Writeln(E.Classname, ': ', E.Message);
end;
readln;
end.
It seems like mCode array is automatically cleaned up ?
Bye,
Skybuck.
.
- Follow-Ups:
- Re: Auto cleanup of dynamic array of Trecord.DynamicArray when first is nilled ?
- From: Jamie
- Re: Auto cleanup of dynamic array of Trecord.DynamicArray when first is nilled ?
- From: Ivan Levashew
- Re: Auto cleanup of dynamic array of Trecord.DynamicArray when first is nilled ?
- From: Ivan Levashew
- Re: Auto cleanup of dynamic array of Trecord.DynamicArray when first is nilled ?
- From: Ivan Levashew
- Re: Auto cleanup of dynamic array of Trecord.DynamicArray when first is nilled ?
- Prev by Date: Re: Interesting shortcut syntax for filling arrays with common value: vByteSorted[0..255] := false;
- Next by Date: Re: Auto cleanup of dynamic array of Trecord.DynamicArray when first is nilled ?
- Previous by thread: Feature Request: Debugger should remember last return value of functions
- Next by thread: Re: Auto cleanup of dynamic array of Trecord.DynamicArray when first is nilled ?
- Index(es):
Relevant Pages
|