User's Guide


Library access parameters

The following parameters control the access mode to the library from the image. All are class methods on EmLibrary.

serverAddress = IP address | Host name (ServerAddress)
This parameter is required only when using the EMSRV lock management process under TCP/IP. It identifies the IP address or host name of the workstation on the network which is running the EMSRV process. The value of this parameter is a string. If this parameter value is specified, then the system uses EMSRV to access a sharable library; if it is not specified, then the system uses direct file I/O to access an unsharable library.

defaultName = name (DefaultName)
This parameter defines the path name of the library file which the image is to connect to upon startup. When accessing the library using EMSRV, this path name is relative to the home directory of the EMSRV lock management process. When accessing the library using direct file I/O, this path name is relative to the directory where the user starts Smalltalk.

openReadOnly = true | false (OpenReadOnly)
Limited support for read-only libraries has been added. Import operations open the source library read-only, so that importing from CD-ROM, or from a library for which a user has only read permission, is now possible. You can also connect an image to a read-only library, and load and export from it. The default value is false, however, the value is saved with the image. If you set it to true, you must explicitly reset it to false before you can perform write operations.

To connect to a read-only library once the image has been started, do the following:

  1. Disconnect from the current library by choosing System > Disconnect From Server from the Tools menu.
  2. Evaluate the expression EmLibrary openReadOnly: true.
  3. Connect to the read-only library by choosing System > Change Default Library, or System > Reconnect to Server from the Tools menu.

To disconnect from the read-only library and return to a normal development library, do the following:

  1. Disconnect from the read-only library by choosing System > Disconnect From Server from the Tools menu.
  2. Evaluate the expression EmLibrary openReadOnly: false.
  3. Connect to the development library by choosing System > Change Default Library, or System > Reconnect to Server from the Tools menu.


[ Top of Page | Previous Page | Next Page | Table of Contents | Index ]