Hi everyone, I'm working on my first app for the Palm OS.  I'm having trouble.

So far, all the app does is open a database (create if it doesn't exist)
and then close it.  It creates the database in a function called from
startApp() and closes the database in stopApp(). 

The problem is that when I call DmCloseDatabase in stopApp() the Poser
tells me that my program has just read directly from low memory.  Why does
it think this?  Here is my entire stopApp() function:

void stopApp() {
Err err;
err = DmCloseDatabase (theDB);
PrefSetAppPreferences(AppCreator, 1000, 1, &prefs, sizeof(Prefs), true);
FrmCustomAlert (debugBoing, "stopApp()", "", "") ;
}

debugBoing is just an alias to the ID of the debug alert.
theDB is a global DmOpenRef which is set with DmOpenDatabase.  I have an
alert which would pop up if theDB were NULL, so I know it is not NULL.

Best regards,
Peter

 

==============================================
      Check out the Cartoon of the Week!
         www.peterconrad.com/funnies/
==============================================

-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/tech/support/forums/

Reply via email to