Article # 116, added by Geoworks, historical record
| first | previous | index | next | last |

How to avoid transparent detaches.




To prevent your application from transparently detaching, set the
AS_AVOID_TRANSPARENT_DETACH bit of the GAI_states field of your
GenApplication object. Two examples below:

@object GenApplicatoinClass MyApp = {
    GAI_states = @default | AS_AVOID_TRANSPARENT_DETACH;
}

MyApp = GenApplication {
    appState = default +avoidTransparentDetach;
}

This flag just prevents the app from getting on the list of potential
transparent detach candidates. Sometimes MSG_META_TRANSPARENT_DETACH
will be sent directly to apps to get them to shutdown. In this case
you should intercept MSG_META_TRANSPARENT_DETACH at the application
object and do nothing if the AS_AVOID_TRANSPARENT_DETACH flag is set.