@Pantcho!!: Of course i do use threads to send the files, don't worry.
And found the HUGE BUG in .... SendNetworkFile()
And it's a bug because of a missing feature. Otherwise it would have been nailed down much sooner!
From the manual about SendNetworkFile: "You will get a 'Result' of 1, if the file was successfully sent, 0 otherwise."
Well, after receiving the "1" for "successfully" just don't dare to close the connection to fast (delay(100) is to short for SOME clients) or you will trigger an event 3 broadcast.
But how long should one wait? Nobody knows because there is no status info by SendNetworkFile (an often requested feature).
It could be implemented that way:
Code: Select all
While (SendNetworkFile() <> SizeOfFile)
Delay(1)
Wend
Thus (of course) SendNetworkFile() must have it's own thread (very probably it's already implemented that way). Every call has to return the sent bytes count.
There should be plenty of time to fix this because of the apple cpu decision ...
