Make all Designer libraries READONLY

dl_fmget(), dl_mnget() and dl_wnget() lock the Designer library before trying to read forms, menus or windows from it. If your application is running on a network, this ensures that no other user can be updating that form at the same time your application is reading it and prevents corruption of the library. The time needed to lock and unlock the library is significant, particularly on older, slower computers.

Once you are ready to distribute your application, however, no one should be modifying the Designer forms. At that point, it is safe to disable library locking by making the library READONLY. If the library is READONLY, Vermont Views will never attempt to lock the library, even if you call sdl_lock() directly to lock the library yourself.

To make the library READONLY, and thus disable library locking, use the Vermont Views System Administrator Utility. This utility is discussed in the Designer User's Guide.

Once the library is READONLY, you will not be able to access the forms in that library from the Designer. However, you can use the System Administrator to turn the READONLY flag off, if you later need to modify the forms.

Note: Setting the file attributes to READONLY using utilities provided by your operating system or a network driver will not disable library locking. The System Administrator Utility uses a system created by Vermont Creative Software to ensure that libraries are READONLY. It does not respect the file attribute READONLY.


Home Contents Previous Next