try

try
  TmpStrings := TStringList.Create;
  TmpStrings.Clear;
  ...
finally
  TmpStrings.Free;
end;

I am lost for words.

Comments

  1. Asbjørn Heid What kind of cruel human being throws in a destructor?

    ReplyDelete
  2. Anthony Frazier see above - if you're a file stream trying to flush but your connection to the disk has been lost, what are you supposed to do? Silently discard data?

    ReplyDelete
  3. Just ran across this exact thing in my code.

    ReplyDelete

Post a Comment