
-----------------------------------
ReN3g@de
Thu Apr 15, 2004 4:38 pm

Net.WaitForConnection problem
-----------------------------------
i used the Net.WaitForConnection in my program heres that part of the 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?

-----------------------------------
recneps
Thu Apr 15, 2004 6:11 pm


-----------------------------------
You have to check if there is stuff on the stream....
if netstreamvar>0 then
loop
if Net.LineAvailable(netstreamvar) then
get: netstreamvar,data
end if
end if
end loop
