You do actually have a valid DmOpenRef, don't you?  Meaning, you called
DmOpenDatabase or DmCreateDatabase or something similar?

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 21, 2001 9:32 AM
To: Palm Developer Forum
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