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/apclosedbase.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/apclosedbase.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/apclosedbase.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/apclosedbase.html on line 8
Close a widget database
#include <Ap.h>
int ApCloseDBase( ApDBase_t *db );
- db
- A pointer to a PhAB picture database structure, returned by
ApOpenDBase()
or
ApOpenDBaseFile().
Ap
ApCloseDBase() closes a widget database that has been
opened with ApOpenDBase() or ApOpenDBaseFile().
Closing a widget database deallocates its memory. If you're finished
using a widget database, close it to free up the memory.
|
If you use a widget database to create widgets that have
PhImage_t
data attached to them,
don't close the database until those widgets are destroyed.
Closing the database frees the memory used by the image.
If you must close the database, make sure to copy the image data within
your application code and to reset the image data resource to
point to your new copy. |
- 0
- Successful completion
ApDBase_t *mydbase;
mydbase = ApOpenDBase( ABM_mypicture );
ApCreateWidget( mydbase, "this_widget", 10, 10, 0, NULL );
ApCreateWidget( mydbase, "that_widget", 50, 10, 0, NULL );
ApCloseDBase( mydbase );
Photon
Safety: | |
Interrupt handler |
No |
Signal handler |
No |
Thread |
No |
ApOpenDBase(),
ApOpenDBaseFile(),
PhImage_t
Accessing PhAB Modules from Code
chapter of the Photon Programmer's Guide
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/apclosedbase.html on line 148
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/apclosedbase.html on line 148