Uhh.. you need to... like... store the index.
You are passing a NULL as the index storage locator.
This will cause the DM to place the record at the
END of the DB.
So:
UInt16 nIndex = 0;
MemHandle h = DmNewRecord(gDatabase,&nIndex,1);
if (h)
{
DmReleaseRecord(gDatabase,nIndex,true);
}
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Jeremy
Nuss
Sent: Monday, July 09, 2001 2:36 PM
To: Palm Developer Forum
Subject: Should this cause an error...
VoidHand h = DmNewRecord(gDatabase, 0, 1);
if(h)
{
DmReleaseRecord(gDatabase, 0, true);
}
this causes a fatal error when my program closes....
the database is closed before the program closes....
--
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/