Freeing unlocked memory is OK. There is no need to unlock a locked block first. It 
should not cause the crash Chris Massey is reporting.

-- Keith

-----Original Message-----
From: Bill Andreozzi [mailto:billandr@;statuspro.tv]
Sent: Friday, November 15, 2002 3:29 PM
To: Palm Developer Forum
Subject: Re: MemPtrFree causes exception


Chris is right, you more than likely may have been trying to free memory
that you have not unlocked first, try calling unlock, then free.
thanks - bill

"Chris Massey" <[EMAIL PROTECTED]> wrote in message
news:101110@;palm-dev-forum...
>
> So I get memory leaks when exiting my app on the emulator.  When I call
> MemPtrFree to free the ptrs allocated with MemPtrNew I get a big fat
error.
> But without it I get leaks !!  What the **** is going on ?  Help !!
>
> Chris

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

Reply via email to