> I am pretty new to the Palm OS but I have searched the knowledge base and
> the archives but I can't seem to get rid of this one error when I delete a
> database.  I receive this error immediately after I call DmDeleteDatabase.
> If I click "continue"  the program finishes and the database is removed.
> Which is the behavior I want.  The error tells me to use Palm supported
> calls....  I thought that was what I was using.  Any suggestions?
> 
> Thanks 
> Mark
> 
> Error:
> "application" has just read directly from Palm OS global variables.  
> 
> This technique may not work in future Palm versions.  Palm OS provides
> supported calls....  etc
> 
> ----
> 
> if (delete){
>       DmCloseDatabase(dataDB);                // close the database
>       dbID = DmFindDatabase(cardNo,dataDBName); // find the database ID
>       
>       DmDeleteDatabase(cardNo,dbID);  // delete database
> 
>       FrmAlert(DeletedDatabaseAlert);
>       MemSet(&newEvent, sizeof(EventType), 0);
>       newEvent.eType = appStopEvent;
>       EvtAddEventToQueue(&newEvent);
> } else {      
>     FrmAlert(NoDeleteAlert);
> }
> 
> ---

-- 
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