[DUG] Dumb Friday Question

Paul Heinz paul at accredo.co.nz
Fri May 4 14:50:00 NZST 2007


David asked: 
> Surely you are joking?
> 
> Is that right? Delphi.NET doesn't have garbage collection?

Yes, it does. I'm guessing they're referring to the IDispose interface
and pattern which Delphi.NET automagically maps calls to Free onto so
that resources _other_ then memory get released early.

Without the IDispose idiom (which can be somewhat tedious in C# outside
of using blocks), you end up relying on .NET Finalizers which are nasty,
discouraged, and generally doubleplus ungood.

Allen Bauer wrote an article about this a ways back:

http://homepages.borland.com/abauer/archives/2003_11_16_archive.html

TTFN,
  Paul.




More information about the Delphi mailing list