Connor, we do it two different ways.
1. Nested try finally and try excepts, one for each object when the number of objects is small. 2. When the number of objects is large. Initialise each object to nil, then one try finally and one try except around the whole thing. Date sent: Fri, 21 Jul 2006 14:26:25 +1200 From: "Conor Boyd" <[EMAIL PROTECTED]> To: "NZ Borland Developers Group - Delphi List" <[email protected]> Subject: [DUG] Related try..finally question Send reply to: NZ Borland Developers Group - Delphi List <[email protected]> <mailto:[EMAIL PROTECTED]> <mailto:[EMAIL PROTECTED]> [ Double-click this line for list subscription options ] I'm getting the impression here that a lot of people only have a 1:1 relationship between try.finallys and procedures/functions? Sounds a bit dangerous. Should realistically be a try..finally for each object you instantiate in a method. Comments, anyone? C. _______________________________________________ Delphi mailing list [email protected] http://ns3.123.co.nz/mailman/listinfo/delphi Regards Rohit ====================================================================== CFL - Computer Fanatics Ltd. 21 Barry's Point Road, AKL, New Zealand PH (649) 489-2280 FX (649) 489-2290 email [EMAIL PROTECTED] or [EMAIL PROTECTED] ====================================================================== _______________________________________________ Delphi mailing list [email protected] http://ns3.123.co.nz/mailman/listinfo/delphi
