Skip to content

SetResourceManager

Set the resource manager

Declaration

Source position: resh.inc line 105

  procedure SetResourceManager(const &New: TResourceManager);

Description

SetResourceManager sets the active resource manager to Manager. After a call to SetResourceManager, the functions in the Manager record will be used to handle resources.

Note that it is not supported to change resource managers on-the-fly: any resources or information about resources obtained should be discarded prior to a call to SetResourceManager. Typically, SetResourceManager should be called once, at program startup.

Errors

None.

See also

Name Description
GetResourceManager Return the currently active resource manager
TResourceManager Resource manager definition