Article # 426, added by Geoworks, historical record
| first |
previous |
index |
next |
last |
Causing an application to quit.
Q. When I quit my demo application by sending MSG_META_QUIT to my process object, the app exits. After returning to GeoManager, however, the system crashes. What did I do? A. You should be sending MSG_META_QUIT to your Application object, not your process object. If you send MSG_META_QUIT to the process object you will get a UI_PROCESS_INVALID_QUIT_LEVEL error. This occurs because you aren't passing a valid QuitLevel in register DX. Since the application object is designed to properly handle MSG_META_QUIT, you should avoid ever sending MSG_META_QUIT to the process object. See the MSG_META_QUIT comments in Include\metaC.def for more detail about the operation of MSG_META_QUIT.