General discussion

Locked

Wrong way to close programs?

By shooten2 ·
This is probably a stupid question, but here goes anyway... I've been told (by a network admin with a degree and 5+ yrs experience) that it's not good to close a program by clicking on the red X in the upper right hand corner of the window. According to him, closing programs that way can cause problems and instability of the programs and/or the system. Instead, he said you should always go to the "File" menu, and then Exit from there. This doesn't seem very legitimate to me - has anyone else heard this, or is it just a bunch of bull?

This conversation is currently closed to new comments.

9 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Collapse -

by R. Diel In reply to Wrong way to close progra ...

LOL...haven't heard that one.

However, I have run into some programs that require you to close all open windows within the program before you close the program, but those have been the exception rather than the rule.

Just a personal observation, I have never run into a system instability problem by using the "X" in the corner.

Collapse -

by shooten2 In reply to
Collapse -

by 3xp3rt In reply to Wrong way to close progra ...

After me it has sense. For example you run an application. When you close the windows with red X, it close the window, but not sure closed all the running process. Also there ca be some memory variables what remain in RAM and could hold some capacity occupied. Finally my opinion is to close from exit button or File -> Exit menu.

Collapse -

by shooten2 In reply to

Poster rated this answer.

Collapse -

by cmiller5400 In reply to Wrong way to close progra ...

If the programmer(s) wrote the program correctly there should not be any difference. For those of you who do not program, They are two different events that are generated. The big red X in the corner generates a form closing event. If the program does not have code in the event to shutdown the application, then problems can follow. When you click file-exit, it generates a different event a menu item clicked event, this is where it should generate a form close. The way it should work is all the code to clean up should be in a seperate function and when you click the file-exit, it calles the form.close event and then that calles the clean up function. Therefore when you click the big red X it will call the clean up function too.

Collapse -

by shooten2 In reply to

Poster rated this answer.

Collapse -

by Dr Dij In reply to Wrong way to close progra ...

answer 3 is right, they are two dift events and may not have been coded the same.

another related problem: if you are using a terminal emulator to connect to an ERP system then closing the terminal emulator with 'X' without logging out of your unix or other OS based ERP system will leave a session hanging and files open, possibly locks on data or files.

Collapse -

by shooten2 In reply to

Poster rated this answer.

Collapse -

by shooten2 In reply to Wrong way to close progra ...

This question was closed by the author

Back to Windows Forum
9 total posts (Page 1 of 1)  

Related Discussions

Related Forums