Sure, it can fail if the handle you feed it is invalid, if the heap is bad, if
you've locked the handle too many times, if you've fed in a pointer to a pointer
allocated with MemPtrNew, or the if block referenced by the handle has been
freed.

Downloading and examining the Palm OS source code helps answer questions like
these.

-- Keith





[EMAIL PROTECTED] (Colin Ward) on 03/15/2000 06:37:07 PM

Please respond to "Palm Developer Forum" <[EMAIL PROTECTED]>

Sent by:  [EMAIL PROTECTED] (Colin Ward)


To:   "Palm Developer Forum" <[EMAIL PROTECTED]>
cc:    (Keith Rollin/HQ/3Com)
Subject:  Can MemHandleLock() fail?





  I'm assuming that it can't, seeing as it is only incrementing a
field in the Memory Block's header.  But we all know what happen to
people who assume.  :-)

Colin Ward, Software Engineer
Active Sky Pty Ltd

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

Reply via email to