<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>Hello everybody.<br><br>I have a question (maybe stupid) about dynamic arrays...<br><br>Usually, before to close the application, to avoid memory leak, i do :<br><br> if length(MyArray) > 0 then<br> for x := 0 to high(MyArray) do<br> MyArray[x].Free;<br><br>But, if i use : <br><br> setlength(MyArray, 0) ;<br><br>would it do the same job ?<br><br>Thanks.<br><br>Fred<br> </div></body>
</html>