Are you freeing the old handle if valid?

Manish wrote:
I am writing a part of code what I have used MemHandle oldH; UInt16 index = 0; newH = DmNewHandle(dbP, size); DmAttachRecord (dbP, (UInt16*) &index, (MemHandle) newH, (MemHandle *) &oldH); here it returns the previous record's handle in oldH. if I pass oldH instead of NULL, my application gets crashed. Through Debug I found crash occurs at DmCloseDatabase.
if I pass NULL instead of oldH it does not crash. But it shows some garbage

Please help me .It is very urgent.
Thanks and regards,
Manish
Manish

--
For information on using the PalmSource Developer Forums, or to unsubscribe, 
please see http://www.palmos.com/dev/support/forums/

Reply via email to