You wouldn't need to free it, but you would need to unlock it.
MemLocalIDToLockedPtr does actually lock the chunk, so a call to
MemPtrUnlock would be necessary.
DeAnna
-----Original Message-----
From: Mike Montalvo [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 15, 2001 10:28 PM
To: Palm Developer Forum
Subject: Freeing memory
In the open event I have:
err =DmDatabaseInfo(cardNo,dbID, CurrentLogName,NULL,NULL,NULL,
NULL,NULL,NULL,&LogHeaderID,NULL,NULL,NULL);
ErrFatalDisplayIf(err, "Could not get Header info.");
pLogHeader = (LogHeader*)MemLocalIDToLockedPtr(LogHeaderID,cardNo);
What would I use to free pLogHeader ?
I currently have:
MemPtrUnlock (pLogHeader);
Is this OK?
I'm getting an error saying "Records left locked in closed unprotected
DB"
when I close the DB. But I only use DmQueryRecord to read the records.
I
don't get it.
TIA,
Mike
--
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/