ApResClose()

Close the file of module resource records

Synopsis:

void ApResClose ( void );

Library:

Ap

Description:

All PhAB applications have module resource records bound into the executable. A PhAB application opens its own binary file to access these records, and keeps the file open for better performance until the application loses focus. Once the file is closed, it isn't reopened unless a module record is required.

If your application has only a single base window or dialogs that are infrequently used, you can force the binary file to be closed by calling this function. This reduces the number of file descriptors in use, as well as freeing resources used for accessing other nodes in a networking environment.

Examples:

In the post-realize callback of the base window:

if (apinfo->reason == ABR_POST_REALIZE) {
    ApResClose ();
}

Classification:

Photon

Safety:
Interrupt handler No
Signal handler No
Thread No