> MemHandle h = DmQueryRecord( dbRef, i);
> jsShareware *rec = (jsShareware *) MemHandleLock(
> h );
>
> if(rec->name == creatorID)
> {
> if(timeInSeconds >= rec->number)
> {
> return false;
> }
> else
> {
> return true;
> }
> }
You should unlock before returning.
> MemHandleUnlock( h );
> }
> if(foundProgram == false)
> {
> MemHandle h = DmNewRecord( dbRef, 0, sizeof(
> jsShareware ) );
You are passing a null pointer as record number as DmNewRecord expects UInt16*.
See the Palm reference for details on DmNewRecord.
With kind regards / Mit freundlichem Gru�
Holger Klawitter
--
Holger Klawitter
[EMAIL PROTECTED] http://www.klawitter.de
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/