Workspace class resource descriptions

wsMaximumSize
This resource specifies the total size in bytes that is allowed to be allocated at any single time for all workspaces managed by the Workspace object during the execution of an HLU program. If the Workspace object is asked to allocate or reallocate a workspace such that this value would be exceeded, the Workspace refuses to attempt the allocation and returns a fatal error. In order to modify wkMaximumSize you must first get the id of the Workspace object using the NhlGetWorkspaceObjectId function.

Default: 16777216

wsThresholdSize
Whenever the sum of the size in bytes of all currently allocated workspaces exceeds the value of the resource wsThresholdSize, the Workspace object attempts to reduce the total allocation below the threshold size by freeing workspaces that are not currently in use. If it is necessary to keep the data in a workspace, the contents of the workspace will first be written to a file. The total size allocated to workspaces may exceed wkThresholdSize if the total size of workspaces currently in use exceeds the threshold size. In order to modify wkThresholdSize you must first get the id of the Workspace object using the NhlGetWorkspaceObjectId function.

Default: 4194304

wsCurrentSize
You can determine the total size currently allocated for all workspaces managed by the Workspace object at any point in an HLU program by retrieving the value of the read-only resource wkCurrentSize. To do this, you must first get the id of the Workspace object using the NhlGetWorkspaceObjectId function.

Default: 0


Reference Manual Control Panel

NG4.1 Home, Index, Examples, Glossary, Feedback, Ref Contents, Ref WhereAmI?


$Revision: 1.9 $ $Date: 1998/06/15 21:28:03 $