Attachment->SaveToFile() and Exception

Giganews Newsgroups
Subject: Attachment->SaveToFile() and Exception
Posted by:  duf (d…@wp.pl)
Date: Mon, 29 Sep 2008

Why I can not catch the exception when save to file throw exception ?

try
{
  Attachment->SaveToFile( AnsiString(Form1->path.c_str()) + "Komunikaty\Wywoz\" + Attachment->FileName );
}
catch ( const EIdException& e )
{
  MessageDlg( "my text: " + Attachment->FileName, mtError , TMsgDlgButtons() << mbOK, 0 );
  continue;
}

Replies