I am trying to use the app info block to store a record ID. When using the POSE, the first run of the app sets and retrieves the value OK. When the app is restarted and tries to retrieve the record ID I get a system error referenceing 'MemoryMgr.c Line 4384 Free Handle'.
Here is how it is set (roughly): newhandle = MemHandleNew(sizeof(UInt32)); appinfo = (UInt32 *)MemHandleLock(newhandle); *appinfo = recordUID; MemHandleUnlock(newhandle); appinfoID = MemHandleToLocalID(newhandle); dbid = DmFindDatabase(0, "dbname"); DmSetDatabaseInfo(0, dbid, ...... , &appinfoID, ...); Here is how it is retrieved: dbid = DmFindDatabase(0, "dbname"); DmDatabaseInfo(0, dbid, ..... , &appinfoID, ...); appinfouid = MemLocalIDToLockedPtr(appinfoID, 0); // here's where I get the error Any help as to what I am doing wrong? Thanks, David -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
