no_auto_close

[wince] , [trmw]
no_auto_close=0

This setting is provided as a work-around for one of Windows CE's more delightful features (at least in its Pocket PC incarnation). When you click the X button on a program it is not actually closed, only minimised. As a result memory can be exhausted quite quickly. When it is, instead of asking what you want to do, Windows CE starts closing applications which it thinks you are not using. Unless you set this option Windows CE may well decide to close SRVWCE, which will result in DP4 closing down altogether.

If no_auto_close is 1 in the [wince] section, then SRVWCE will attempt to resist close commands that do not seem to come from the user. If is a good idea to use this setting in the [wince] section.

The setting can also be used as a [trmw] setting. In this case it should only be enabled for specific programs, not used in the [trmw] section itself, and you will need to provide some means, such as an "Exit" option, for the program to be closed down gracefully by the user

In both cases when no_auto_close is set the user will not be able to close the program cleanly via the Settings,System,Memory,Running Programs, Stop route. If they try to stop a program that has the no_auto_close setting turned on then they will get a "not responding" message from Windows. If the user then chooses to terminate the program it will be terminated in a way that prevents it from tidying up. In particular any databases and DP4 connections opened will be left open.