You might also want to consider copying the data from 'Serial' to your DB
record, not just assigning the pointer.

----- Original Message -----
From: <[EMAIL PROTECTED]>
To: "Palm Developer Forum" <[EMAIL PROTECTED]>
Sent: Thursday, June 21, 2001 9:31 AM
Subject: One more error! Fatal Exception.


> Ok, my code compiles fine but when I try it on the palm and save then it
gives me a fatal error about saving the database so I tried going back and
unlocking the memory handle and now when I try it it gives me a soft reset,
before it gave me a hard reset. So what am I doing wrong here? Thanks!
>
> myRecordHandle=DmNewRecord(gDb, &RecordIndex,RecordSize);
>
//newRecordPtr=MemHandleLock(myRecordHandle);
>                                         newRecordPtr=(OurStruct *)
MemHandleLock(myRecordHandle);
>                                         newRecordPtr->itemnum=Serial;
>                                         MemHandleUnlock(myRecordHandle);
>                                         FrmAlert(SaveAlert);
>                                         FrmGotoForm(MainForm);
>                                         WinEraseWindow();
>
>                               GOD Bless!!!
>
> --
> For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/tech/support/forums/
>



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