SendData bug

Report any Hollywood bugs here
Post Reply
User avatar
lazi
Posts: 625
Joined: Thu Feb 24, 2011 11:08 pm

SendData bug

Post 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.
User avatar
airsoftsoftwair
Posts: 5443
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: SendData bug

Post by airsoftsoftwair »

Check your emails :)
Post Reply