Something to also note here is when a create fails (raises an exception)
then the destructor will automatically be called straight away.
Nahum
-----Original Message-----
From: Mark Derricutt [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, 1 December 1999 12:08
To: Multiple recipients of list delphi
Subject: Re: [DUG]: Duplcate resource
On Wed, 1 Dec 1999, Neven MacEwan wrote:
> try
> JobText := TStringList.Create;
>
> generates a warning that jobtext may not be initialised
Put the create above the try.. because the create -may- fail, you get the
warning that the free might be doing something on an uninitialized
variable.
--
Mark Derricutt
Now Playing: <no audio cd present>
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz