On Mon, 7 May 2001 11:14:30 +1200, you wrote:
>Dispose shouldn't cause an access violation - it's a good idea to set the
>variable to nil after disposing and to test for nil before disposing.
FYI Borland snuck a nice routine "FreeAndNil" into D5.
It can be used with any object or pointer to Object, the routine
test if the pointer is nil, if not the objects free method is called,
then the pointer is set to nil.
--
Peter S Ingham [EMAIL PROTECTED]
Lower Hutt, New Zealand
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED]
with body of "unsubscribe delphi"