changed err = DmCloseDatabase(dbPtr); To err CloseDB();
and then
Err CloseDB(void)
{
// Close the database if it has been opened:
if(dbPtr)
{
Err err = DmCloseDatabase(dbPtr);
dbPtr = NULL;
if(err) return err;
}
return 0;
}
The problem went away
So you were right, it was that I was not dealocating the dbPtr
between open()
--
For information on using the PalmSource Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/
