Yeah, silly me figured out that one after sending the email.  But if your
app is in the process of falling over that who cares about a couple of
little old memory leaks?  Different story though I spose if you catch and
handle exceptions nicely.

I'm just annoyed about all the indentation. :o)


Nahum.

> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Behalf Of Paul Eggleton
> Sent: Thursday, 4 March 2004 15:52 p.m.
> To: NZ Borland Developers Group - Delphi List
> Subject: RE: [DUG] try..finally : Which way is best?
> 
> 
> Nahum.Wild wrote on Thursday, 4 March 2004 3:37 p.m.:
> > Ok so this is something that has bugged me for ages, partly 
> because I
> > don't know and partly because I can't be bother trying to figure it
> > out.  
> > 
> > is the following code ok? 
> 
> It's possible one of the Creates could fail due to lack of memory, so
> you should have a separate try...finally for each one. Anyway, apart
> from more typing there's no harm in protecting them separately.
> 
> Cheers,
> Paul
> 
> _______________________________________________
> Delphi mailing list
> [EMAIL PROTECTED]
> http://ns3.123.co.nz/mailman/listinfo/delphi
> 

<<attachment: winmail.dat>>

_______________________________________________
Delphi mailing list
[EMAIL PROTECTED]
http://ns3.123.co.nz/mailman/listinfo/delphi

Reply via email to