Page 1 of 1

SendData bug

Posted: Fri Jul 04, 2014 2:59 am
by lazi
If I use several SendData quickly, it crashes badly on win32.

Here is the loop that fail:

Code: Select all

Local fh=OpenFile(nil, path .. filename$,#MODE_READ)
     Local i=0
     xmax=0
     While i<size
        l=Min(8192,size-i)
        data$=ReadString(fh,l)
        x=SendData(id,data$)
        i=i+l
     wend
     CloseFile(fh)              
But if I put a Wait(1) after the senddata, there is no problem even with the largest file.

Re: SendData bug

Posted: Sat Jul 05, 2014 9:25 pm
by airsoftsoftwair
Check your emails :)