
-----------------------------------
thoughtful
Mon Oct 13, 2003 5:02 pm

Close.Window Problem
-----------------------------------
Well me and another student made an airport database with GUI for a project. Well here is how it works:

A main window with 4 buttons> each button opensa new window and runs a procedure in it

Now i am using different variables to open each window. Well at end of each procedure i have Window.Close(the window i opene) and then Window.Select(the main one) but whenever the window closes turing crashes.  
anyone knows why?

-----------------------------------
Origon
Mon Oct 13, 2003 5:35 pm


-----------------------------------
Not sure if this'll help, but you could always try hiding the new window with Window.Hide and selecting the main one.

-----------------------------------
Martin
Mon Oct 13, 2003 5:44 pm


-----------------------------------
It's crashing because you have active widgets on the window that you're closing, and when the computer tries to access the widgets it crashes because the window doesn't exist. Now, the solution to this is to GUI.Dispose all of the widgets that are on the window that you are closing.

-----------------------------------
thoughtful
Tue Oct 14, 2003 3:56 pm


-----------------------------------
Hey thnx i solved the problem

we r using multiples files and use include to call them, n e ways my stupid partner was using the GUI.ProcessEvent in all of them :wall: , when i took that out from the other file and jus left the one in the main one it worked  :D
