Middleware, development tools, realtime operating system
software and services for superior embedded design


Home
QNX Community Resources
QNX Documentation Library
ApResClose

ApResClose

QNX Software Systems
Developer Resources
Blogs
Board support packages
Foundry27 projects
Forums
Hardware support listing
Online video tutorials
Product documentation
Technical Articles

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