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

Username:   Password: 
 RegisterRegister   
 turing crashes
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
Geminias




PostPosted: Tue Jan 03, 2006 8:58 pm   Post subject: turing crashes

hey, i have turing 4.0.5 and if i try to run code:

Turing:

 var url : string
        put "Enter the URL to load: " ..
        get url
       
        var netStream : int
        var line : string
       
        netStream := Net.OpenURLConnection (url)
        if netStream <= 0 then
            put "Unable to connect to ", url
            return
        end if
        loop
            exit when eof (netStream)
            get : netStream, line
            put line
        end loop
        Net.CloseConnection (netStream)


my program crashes saying there's a problem with the environment not my program. Anyone know why this is caused? i need to fix this.

Also, i created a canvas and i'm wondering if its possible to have a scroll bar on the canvas. Anyone know the answer to this?
Sponsor
Sponsor
Sponsor
sponsor
McKenzie




PostPosted: Wed Jan 04, 2006 9:49 am   Post subject: (No subject)

What are you entering as the URL?
ecliptical




PostPosted: Wed Jan 04, 2006 1:34 pm   Post subject: (No subject)

ya the url matters for example www.google.com crashes myTuring 100% of the time. =)
[Gandalf]




PostPosted: Wed Jan 04, 2006 3:59 pm   Post subject: (No subject)

I think it has something to do with the redirection they use. For example, www.yahoo.com works. Also, when you do it for compsci.ca you get the 'bot' page.

Not sure how to fix it, or if it's possible. Sorry I can't be of more help.
Geminias




PostPosted: Wed Jan 04, 2006 6:38 pm   Post subject: (No subject)

yeah i was using google lol.

but if it crashes that must mean the packets are going through right? (cause i'm having trouble getting a stream from any other website)
ecliptical




PostPosted: Wed Jan 04, 2006 7:02 pm   Post subject: (No subject)

ya as far as i know turing does an ok job of sending and recieving Packets its the HTTP protocol that it's weak on.
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  [ 6 Posts ]
Jump to:   


Style:  
Search: