> There are two errors in your program:
> 1) You forgot to assigned ClientClass property and nevertheless you are
> using your own class TMyClient. This error cause the AV you noticed. It also
> caused the casting error you noticed:
>     // GM 16.05.2005 : below is commented else i have an object typecasting
> error at runtime
>     // MyClient := Client as TMyClient;
>     MyClient := TMyClient(Client);
> To fix this error, add the line below just before starting the server.
>           FtpServer1.ClientClass := TMyClient;
>
> 2) You neglected to create tha DataStream in your thread Execute method. Add
> the line:
>      Client.DataStream := TMemoryStream.Create;

It works perfectly ! (8-D

thanks a lot for your help François !!

next time i'll read a bit better any source code trying not to miss any comma 
or dot !

BTW, this could also be added to the FAQ !

best regards,

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