UltraLite Embedded SQL User's Guide
Developing UltraLite Applications for the Palm Computing Platform
Maintaining state in UltraLite applications
Whenever your UltraLite application is closed, and the user switches to another application, your code must callULPalmExit to save its state. Some kinds of data cannot be kept open during the time that you move away from an UltraLite application.
Do not call db_fini to close the application. Instead, call ULPalmExit. All connections (on a single SQLCA) and cursors remain open.
For more information, see ULPalmExit function, and PalmExit method.