> I made the following dynamic array: a: array of string.
>
> I do SetLength(a, 10) then assign values. In order to prevent
> memory leaks, does a simple SetLength(a, 0) will do the job,
> or do I have to also SetLength(a[n], 0) of all the values?

I'm not sure you need to do either

----------------
George Birbilis ([EMAIL PROTECTED])
Microsoft MVP J# for 2004-2006
Borland "Spirit of Delphi"
* QuickTime, QTVR, ActiveX, VCL, .NET
http://www.kagi.com/birbilis
* Robotics
http://www.mech.upatras.gr/~Robotics
http://www.mech.upatras.gr/~robgroup




  _____  

avast! Antivirus <http://www.avast.com> : Outbound message clean. 


Virus Database (VPS): 0623-0, 05/06/2006
Tested on: 6/6/2006 5:16:19 ??
avast! - copyright (c) 1988-2006 ALWIL Software.



_________________________________________________________________
     To unsubscribe: mail [EMAIL PROTECTED] with
                "unsubscribe" as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to