> recH = DmQueryRecord(gDB, i);
> if (recH) {
> recP = (MissionDBPtr)MemHandleLock(recH);
> if (recP->level == mission.level) {
> index = i;
> }
> MemHandleUnlock(recH);
The MemHandleUnlock call should go up one line. If DmQueryRecord fails you're still attempting to unlock recH. Since you already unlocked it the last pass through, you fatal error.
-- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
