According to the Delphi 7 help file:

"Finalize procedure"

If a dynamic variable meets the following two
conditions, a call to Finalize is required to finalize
the variable before it can be deallocated.

1) The variable is deallocated by other means than the
Dispose standard procedure (for example using
FreeMem).
2) The variable contains long strings, variants, or
interfaces, not all of which are empty or Unassigned.

My comment is based on #2.



--- Rob Kennedy <[EMAIL PROTECTED]> wrote:
> Jonathan Mora wrote:
> > A call to finalize is necessary since the dynamic
> > array contains long strings.
> 
> Wrong.
> 
> The automatic finalization of dynamic arrays is
> recursive. If you have a 
> dynamic array of records with fields that contain
> dynamic arrays of 
> AnsiStrings, *everything* will get finalized
> correctly when the 
> top-level dynamic-array variable goes out of scope.
> 
> -- 
> Rob
> 

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


-----------------------------------------------------
Home page: http://groups.yahoo.com/group/delphi-en/
To unsubscribe: [EMAIL PROTECTED] 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/delphi-en/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to