Internally, you are basically using the same routines either way. The
rule of thumb I push around here is basically, if you need the memory
beyond the scope of one function/event-handler, use MemHandleNew and
then lock/unlock each use. If the scope is limited to one
function/event-handler, use MemPtrNew.
-jjf
-----Original Message-----
From: Richard Hartman [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 03, 2000 2:31 PM
To: Palm Developer Forum
Subject: MemHandleNew() vs. MemPtrNew()
I have always been using MemHandleNew() and lcoking
& freeing it in each routine that needs access to that memory.
I have the feeling that this may be overkill.
I would like to invite comments on when to use MemHandleNew()
and when to use MemPtrNew(). What are the benefits and penalties
of each.
--
-Richard M. Hartman
[EMAIL PROTECTED]
186,000 mi/sec: not just a good idea, it's the LAW!
--
For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palm.com/devzone/mailinglists.html
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palm.com/devzone/mailinglists.html