IdFtp In thread and Error Handling

Giganews Newsgroups
Subject: IdFtp In thread and Error Handling
Posted by:  Lucas Nishimura (lucasnishimu…@pop.com.br)
Date: Fri, 28 Jan 2005

I have this block of code inside a thread
except
  on E: EIdProtocolReplyError do begin
    ShowMessage(E.Message);
    // Do something else about the ProtocolReplyError
  end;
  on E: EIdSocketError do begin
    ShowMessage(E.Message);
    showmessage(inttostr(E.LastError));
    // Do something else about the SocketError
  end;

However id catches only EIdProtocolReplyErrror, and seems to be not working
with EidsocketError messages... can any one help me or give any clue;

Thanx in Advance

Replies