I am trying to use an alarm to launch my application, and I want to use a DB
(to store and read information).
If i launch normally i can access the DB.
But when I my application is started using the alarm, I got an error, and my
device is reseted.
(It seems that the app can't acces the DB)
Can someone tell me why, and how i can solve the problem ?
Thanks.
Here are some code lines:
//globals
typedef struct{
long type;
char *name;
}CheckDatabases;
CheckDatabases databases[] = {
{ dbTypeCity, dbNameCity },
{ dbTypeCountry, dbNameCountry },
{ 0, NULL }
};
//Trying to access the DB
while(databases[i].type != 0)
{
db = DmOpenDatabaseByTypeCreator
(databases[i].type, appFileCreator, dmModeReadOnly);
if(!db)
{
error = DmCreateDatabase
(0, databases[i].name, appFileCreator,
databases[i].type, false);
if(error)
{
FrmCustomAlert(ErrorAlert,"Eroare","Error creating the
table",databases[i].name);
return;
}
}
}
--
For information on using the PalmSource Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/