Computer Science Canada

Net.WaitForConnection problem

Author:  ReN3g@de [ Thu Apr 15, 2004 4:38 pm ]
Post subject:  Net.WaitForConnection problem

i used the Net.WaitForConnection in my program heres that part of the code...
code:
    stream := Net.WaitForConnection (6969, netIP)
    loop
        line := ""
        get : stream, line

theres more code to that but i realized that this was causing the problem... it works on my computer compiled but when i get someone else to open the compiled program an error always pops up, a Run time error! and its driving me crazy!! anyone know why its doing this?

Author:  recneps [ Thu Apr 15, 2004 6:11 pm ]
Post subject: 

You have to check if there is stuff on the stream....
code:
if netstreamvar>0 then
loop
if Net.LineAvailable(netstreamvar) then
get: netstreamvar,data
end if
end if
end loop


: