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

Username:   Password: 
 RegisterRegister   
 A Challenge (With Window commands)
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
StarGateSG-1




PostPosted: Mon May 30, 2005 10:56 pm   Post subject: A Challenge (With Window commands)

Ok I know I am not the first person with this problem but I also know no one has methioned it becasue they is a messy way around it.

When you have 2 or more window's open and you go to close them it will open the first window to be closed again and then when you close that it will get a runtime error.

Sry if I am not clear but it is late and I will give an Example.

This is the example, I will check this tomorrow.
Sponsor
Sponsor
Sponsor
sponsor
jamonathin




PostPosted: Tue May 31, 2005 7:47 am   Post subject: (No subject)

Well I'm guessing Turing sets the stream number of a window to 1 when it gets closed, and you're trying to close a closed window, why you're even doing that, who knows, but you dont even need to. So I don't really understand the purpose of this post. Confused
Maybe you could elaborate on this a little more.
StarGateSG-1




PostPosted: Tue May 31, 2005 9:23 am   Post subject: (No subject)

Sure, Ok when you close the program with two or more windows. It closes them fine, and then there is a third window that flashes and contain the your program running. which is the same as the first window. Unfortunatly when you try and close this window you get that error.
Delos




PostPosted: Tue May 31, 2005 2:30 pm   Post subject: (No subject)

This is an error intrinsic to the way Turing handles windows. If you 'Show Allocated Objects', you'll see that there are 3 windows opened on initialization, only one of which you can see (stream 0). Streams -1 and -2 are hidden, and can be shown with enough coaxing.
Your error might be the result of using GUI, I've seen it happen a lot in that context.
Best advice I can give is to display your window streams during your programme ("put MainWindow" etc), so you can keep track of what's happening to what as the programme progresses. You might be able to track down your bug from there.
StarGateSG-1




PostPosted: Tue May 31, 2005 4:20 pm   Post subject: (No subject)

Ok I solved the problem well not solved it but. It can't be fixed that well but the best way is to avoid closing the windows. So you Quit and then hide is the best way.

P.S. HoltSoft is aware of the problem.
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  [ 5 Posts ]
Jump to:   


Style:  
Search: