Quote: "You do realize that Windows releases all resources when the application is closed?"
Come on, are you having a laugh? I'm not that retarded you know.
Quote: "The only damage that could occur is file corruption if the application is actively writing to disk."
That is the central point of the argument.
Quote: "
In all honesty I don't particularly care if Alt-F4 is disabled as long as I have Ctrl-Alt-Del. And if a game disables that, especially when the game is a buggy mess that freezes or crashes a lot, I get angry if I have to resort to a hard reset because of somebody's crappy and inconsiderate coding. Now that is an action that could damage your computer if you do it enough times."
Very true.
Quote: "WIKI: Table of keyboard shortcuts: Close the focused windowAlt+F4 or Ctrl+F4 or Ctrl+W or Alt+Space"
Some other close window commands; notice how it is for closing the focused window, and not the program; it is up to the program to decide what to do if the main window receives a close event. You even get a cancel close return option in windows forms applications.
Quote: "I totally agree not allowing the player to exit the game, and forcing them to stay in it is in 95% of circumstances NOT a good idea for PR"
There has been a misunderstanding of what I was recommending;
The player should be allowed to exit when they want.
I do not recommend NOT allowing the player to exit. That is quite bizarre really. Reminds me of wanting to shutdown Windows and switch off the PC before the electrician switches off the power, oh wait Windows needs to install 103 updates.. (Ok you can disable that feature, but you get the point)
What I was recommending is to disable the operating system from ending the process without it closing properly; IE handle the exit event, hide the window, finishing saving to the disk, then end the background process.
A bit like what your web browser does; when you ALT-F4 out, it hides the window, shuts down and saves the session, cleans up the cache then terminates the process. It doesn't just end straight away like that, it handles the exit procedure; rather than letting the OS terminate it. That's what disabling ALT-F4 is for, to handle the exit procedure yourself.
Anyway, it will all make more sense when you actually create a program that accesses lots of files.