Hi everyone,

i have a weird problem with the FTP Serv comp.

i've adapted (to my application) the GetProcessing method from the FtpServ demo
in order to detach a file generation process within a thread and delay the data 
sending.
if i create the thread within the OnGetProcessing Event, everything goes fine
even within the execute method and the data being sent back.

the problem is the following :
whenever i disconnect the ftp client (ics based or pure ftp client),
my ftp server application generates an exception... after several hours of 
debugging
it seems that it occurs within the destroy of the TFtpCtrlSocket.
in fact within the destroy of its ancestor TCustomWSocket at the line
procedure TCustomWSocket.DeleteBufferedData;
var
    nItem : Integer;
begin
    { Delete all data buffer }
    for nItem := 0 to FBufList.Count - 1 do
        TBuffer(FBufList.Items[nItem]).Free;
    FBufList.Clear;
end;

if i don't create the Thread, it works fine and a disconnect doesn't trigger an 
exception...

any one any clue ?

Guillaume MAISON
-----
Guillaume MAISON - [EMAIL PROTECTED]
83, Cours Victor Hugo
47000 AGEN
Tél : 05 53 87 91 48 - Fax : 05 53 68 73 50
e-mail : [EMAIL PROTECTED] - Web : http://nauteus.com


--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be

Reply via email to