Warning: main(/www/www/htdocs/style/globals.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/photon/lib_ref/ap/apresclose.html on line 1

Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/globals.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/photon/lib_ref/ap/apresclose.html on line 1

Warning: main(/www/www/htdocs/style/header.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/photon/lib_ref/ap/apresclose.html on line 8

Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/header.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/photon/lib_ref/ap/apresclose.html on line 8

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

Warning: main(/www/www/htdocs/style/footer.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/photon/lib_ref/ap/apresclose.html on line 96

Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/footer.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/photon/lib_ref/ap/apresclose.html on line 96