At 7:00 PM +0100 15-03-00, John Marshall wrote:
>Bummer.  So maybe this should be rewritten for ROM apps...

Yeah.  Apps in ROM don't actually need to unlock the handle or release the
resource.... 'cause they're in ROM.  The rest of the Dm and Mem routines
gracefully handle this, MemPtrRecoverHandle is the only exception.

Maybe you can just avoid all that in the startup code as well?  I think you
could safely special case any chunk that's in a read-only heap...

We really should fix MemPtrRecoverHandle. It can be made to work properly
even for ROM handles... it's just messy and won't be very fast.  (Because
it's the DataManager that creates the fake handle structure, not the memory
manager.)

                                --Bob



-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palm.com/devzone/mailinglists.html

Reply via email to