there seems to be some bug in indy
go in idtrivialftp.pas, line 272 in latest indy 10.
looe for the line
CurrentDataBlk := WordToStr(GStack.HostToNet
and make it look like
CurrentDataBlk := WordToStr(GStack.HostToNet
notice the word explicit type conversion of BlockCtr
this fixes the range check error. (I thought you got a compiler warnign :D )
then, on line 274 uncomment the line
SourceStream.ReadBuffer(Cu
and that should do it. the example at least, clicking on button2, will upload that text from the memory stream)
No comments:
Post a Comment