As an aside - shouldn't "JobText := TStringList.Create;" be before "try" -
or if creation fails the try..finally block will still try to free it
resulting in a wooopsie.

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
Behalf Of Neven MacEwan
Sent: Wednesday, 1 December 1999 12:00
To: Multiple recipients of list delphi
Subject: [DUG]: Duplcate resource


Hiya All

Thanks for all the suggestions - problem was tracked to rogue entry in uses
clause - duh

can anyone comment as to why

  try
    JobText := TStringList.Create;
    ......
  finally
    JobText.Free
  end

generates a warning that jobtext may not be initialised

I hate putting in JobText := nil to get rid of a warning!! - but i don't
want to turn the warnings off (great for purging unused vars)

Regards
Neven

---------------------------------------------------------------------------
    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

Reply via email to