Computer Science Canada Error When Executing Turing Program |
Author: | DemonWasp [ Mon Jan 05, 2009 10:42 am ] |
Post subject: | RE:Error When Executing Turing Program |
1. You're right, 4.0.4c is older than 4.1.1 2. You may have added some kind of extra character to the file. Try opening it in another editor, such as Notepad (preferably, Notepad++, look with Google). If you can open the file with another editor just fine, then it's something funny in the file that Turing is choking on, not your actual code. If the problem persists, try to apply the changes you've made since your most recent working backup to that backup manually. Do not copy-paste, and make a backup copy of the file you decide to work on first. Good luck! |
Author: | stojanovic [ Mon Jan 05, 2009 10:49 am ] |
Post subject: | Re: Error When Executing Turing Program |
Thank you for your reply! I'm able to open the lines of code (i.e see all the lines of code), I run into this error message when I try executing the code. "If you can open the file with another editor just fine, then it's something funny in the file that Turing is choking on, not your actual code." - Sorry, but I got the impression that you thought I couldn't open the file at all (as in, not even be able to see the lines of code)? But, thanks I'll try that anyways. |
Author: | DemonWasp [ Mon Jan 05, 2009 2:27 pm ] |
Post subject: | RE:Error When Executing Turing Program |
The Turing interpreter is fairly buggy, so there are a few things to check: 1. Do your old programs (backups) execute properly? 2. Can you isolate a single point at which your new program fails, or does it fail immediately? 3. Is anyone else in your class having a similar kind of problem? (Essentially, is it possible that there's some issue with your setup at school? Unlikely.) If your old programs work, and nobody else is having similar issues, try adding parts of your program back in slowly, continuing until it fails with this error message. This will let you isolate the part of your code that's causing the problem. |
Author: | Euphoracle [ Mon Jan 05, 2009 3:25 pm ] |
Post subject: | RE:Error When Executing Turing Program |
It might be a CD reading error. Are the CD drives at your school function? Can you copy it off, and run it from your desktop? Can you read the CD at home? Try bringing it on a different medium, such as a floppy disk, or USB Key. If it is 1 code file, you could even paste it here, and load up compsci.ca at school and copy it into that turing editor. By the description of your situation, it sounds like the CD is damaged, or the CD reader at your school is damaged. |
Author: | stojanovic [ Tue Jan 06, 2009 10:28 am ] | ||
Post subject: | Re: Error When Executing Turing Program | ||
Thanks again for your replies, I'll try what you suggested. Here's the code for my most recent program (orignially made on turing v. 4.1.1, and the one at school is v. 4.0.4c):
|
Author: | stojanovic [ Wed Jan 07, 2009 10:38 am ] | ||||
Post subject: | Re: Error When Executing Turing Program | ||||
Hey, thanks for all of your help. As Euphoracle suggested - it ended up being a CD reading error (the CD seemed to be damaged). I deducted this after opening and executing the program successfully from the deskptop. The only things I had to take out though (when running from the desktop) were: GUI.ResetQuit, and a music file that I forked (i.e "fork _____"). Is there anything I can use as a substitute for "GUI.ResetQuit"? Another problem I'm running into is this: when I fork a music file ("fork ____"), so it runs with the rest of the program, the initial animation that starts up the intro screen (numerous ovals appearing in definite patterns from the center) undergoes very slowly, with each individual oval (or sometimes 3-4 at a time) appearing every 2-3 seconds. It's supposed to flow together, and happen pretty quickly though. When I take out the "fork _______" it works fine. I think this might be a problem with the turing at school, because it seems to work fine at home (although, I had to copy and paste it into a new folder, because it seemed to run into the same problem at home aswell while in a certain folder...???)
Mod Edit: Tags were broken so fixed that up. Oh and syntax tags usually look better ![]()
|
Author: | DemonWasp [ Wed Jan 07, 2009 11:09 am ] |
Post subject: | RE:Error When Executing Turing Program |
Turing isn't actually multi-threaded, so using "fork" just tells Turing to manage simultaneous execution. It is spectacularly bad at this. What you seem to be seeing here is one thread getting resource-starved (the one that draws the ovals) while the other noms all the resources. The reason it would work better on your home computer likely has to do with your home computer being faster, and Turing's thread-resource-allocation methods being improved in later versions. Unfortunately, there's probably no real fix to this, short of not using Turing, which is well beyond the needs of the assignment. |
Author: | stojanovic [ Thu Jan 08, 2009 10:09 am ] |
Post subject: | Re: Error When Executing Turing Program |
Thanks! Oh I see, well I suppose I'll just have to tell the teacher to mark it from his home computer. I hope his computer has the necissary speed. (I guess i'll save the installation file of the newer version of turing, and my project)... Thanks for all your help! ![]() If you are interested in checking out what I have so far (I still have to add in the questions into this program): |