Article # 429, added by Geoworks, historical record
| first |
previous |
index |
next |
last |
How can I tell if the system is shutting down?
Q. I would like to save some data in the state file during system shutdown (like Exit to DOS). What messages and parameters in messages are special so that I can tell GEOS is being shut down instead of application exits normally? I don't want the app to spend time saving data for restoring state when the app exits normally. A. In your application's message handler for MSG_GEN_PROCESS_CLOSE_APPLICATION you can @call MSG_GEN_APPLICATION_GET_STATE to the application object. Test ApplicationStates for AS_DETACHING.