 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
PurL Guest
|
Posted: Wed Jul 12, 2006 6:57 pm Post subject: Exception EIdNoDataToRead in TIdFTPServer::OnRetrieveFile |
|
|
Hello,
I develop a FTP server with Indy 9.0.17 and BCB5.
All work fine...
In a demo, I see this code for the OnRetrieveFile event :
VStream = new TFileStream(file, fmOpenRead || fmShareDenyWrite);
When I test to donwload a file with a FTP client, I have an
EIdNoDataToRead exception.
If I remove fmShareDenyWrite of the line, the transfert is OK.
I do not understand why and I prefer to have this parameter for more
stability.
Do you have some idea about this problem ?
An other thing : It's very difficult to find Indy examples for BCB, do
you have some interresting links ?
Thanks,
PurL |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|