Controlling Designer Library Locking

The function se_dllocking() sets a global value that indicates whether to lock Designer libraries.

se_dllocking(ON);
/* turn library locking on 
*/
se_dllocking(OFF);
/* turn library locking off
*/

If the value is OFF, libraries will not be locked when forms are read from a Designer library by dl_fmget() and dl_mnget().

Another way to disable library locking is to set the READONLY flag for the library using the Designer System Administrator Utility. If the READONLY flag has been set, that library will never be locked when forms are read from it. This will guarantee that users of your application will never get a locked library. You should do this only after you are done making changes to the library, because the Designer also cannot access a READONLY library.

Use the System Administrator Utility to change the READONLY status of the Designer library file. Setting the system privileges or changing system permissions to READONLY does not prevent Vermont Views from locking the library.

Warning: You should not disable library locking in a multi-user environment until your application is completely finished, tested, and thoroughly debugged. For more information on how and when you can safely disable library locking, see Chapter 51, "Code Management."


Home Contents Previous Next