Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Net.WaitForConnection problem
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
ReN3g@de




PostPosted: 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?
Sponsor
Sponsor
Sponsor
sponsor
recneps




PostPosted: Thu Apr 15, 2004 6:11 pm   Post subject: (No 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
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 2 Posts ]
Jump to:   


Style:  
Search: