Hi Ai Lee,

The OS is free to change the locations of chunk of memory anytime
in order for the other chunks to expand and while you are 
working with the chunk you will need to lock it 
using the MemHandleLock to prevent the Palm OS from 
moving the chunk of memory while using it.
The MemHandleUnlock is basically used to unlock this chunk
of memory which is locked using the MemHandleLock.

The MemHandleUnlock should be used paired with
MemHandleLock to unlock this chunk as OS is free
to move the chunk .

The MemHandleFree is actually used to dispose the chunk 
which was being allocated by MemHandleNew.

Please do get back for further clarifications
Thanks
Arvind
Developers' Nation
You've got the questions; we've got the answers.
Visit Us At :http://www.devnation.net for Palm Developer Support

-----Original Message-----
From: Ai Lee Tang [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 24, 2001 2:10 PM
To: Palm Developer Forum
Subject: Memory lock question


hi all,

i am very confusing between "MemHandleUNlock" and "MemHandleFree".

What is the definition to both ?


rgds,
ailee
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.


-- 
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