Why does this fail:-

void(*)(DmOpenRef dbPtr){
 MemHandle hRec;
 UInt16 atP = dmMaxRecordIndex;
 UInt32 recSize = foo(xxx);

 hRec = DmNewRecord(pDB, &atP, recSize);
 // D'OH hRec == NULL
}

but this works:-
void(*)(DmOpenRef dbPtr){
 MemHandle hRec;
 UInt16 atP = dmMaxRecordIndex;
 UInt32 recSize = foo(xxx);

 hRec = DmNewHandle(pDB, recSize);
 // Yuppie! hRec != NULL
}

???

IM



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