BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Exception EIdNoDataToRead in TIdFTPServer::OnRetrieveFile

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (Internet)
View previous topic :: View next topic  
Author Message
PurL
Guest





PostPosted: Wed Jul 12, 2006 6:57 pm    Post subject: Exception EIdNoDataToRead in TIdFTPServer::OnRetrieveFile Reply with quote



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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (Internet) All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.