Hi,
This is an error i got from the code below. Has anyone encountered the same
error at any time. I uploaded database into the emulator and when i run the
program i got the error at this line
DmDatabaseProtect(0, GID, Protect);
"DataMgr.c, Line:2968, DmDatabaseProtect tried to deprotect unprotected
database".
Code is:
DataCollectorDB = DmOpenDatabaseByTypeCreator(dataCollectorDBType,
dataCollectorAppType, mode);
if (!DataCollectorDB)
{
ErrDisplay("Upload the Database First. Reset then Push the HOTSYNC");
}
GID=DmFindDatabase(0, dataCollectorDBName);
DmDatabaseProtect(0, GID, Protect);
DataCollectorUserDB= DmOpenDatabaseByTypeCreator (userDBType, creator,
dmModeReadWrite);
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/