At 12:23 PM 5/30/00 -0700, you wrote:
>
>> After all, there should be some entry
>> in a mapping from handle to pointer somewhere.
>> This might cause problems later.
>
>I don't quite understand the question.  Do mean such a mapping may exist
>inside the user's app, or do you mean inside the Memory Manager?  (The
>Memory Manager has no trouble keeping everything straight.)

Inside the Memory Manager.  Without looking at the source, it would be
logical for it to keep a mapping from handle to pointer or some such.  If
you freed a locked pointer without unlocking it you might cause problems -
the overhead to handle this situation may be excessive (and therefore not
exist).  I can see implementations where the memory manager does
semi-periodic sweeps of the handle mapping for things like "automatic"
memory deallocation when a program exits - which could cause wierd
behaviour to say the least.


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