Well, does this sound good to you?

First I use the following to find out if the database with the resources
are in ROM:

if (MemLocalIDKind(localID) == memIDHandle) {
        // we are in RAM
} else {
        // we are in ROM
}

if we are in ROM then I should use MemPtrUnlock instead of MemHandleUnlock
to unlock the ptr.  But what about DmReleaseResource?  It does nothing now
but in the future will I need my app to call this?

Thanks,
Dan Hewins
Synergy Solutions, Inc.




At 3:03 PM -0700 4/7/99, David Fedor wrote:
>>Oops--I had the wrong things commented out.  The call to
>>MemPtrRecoverHandle is what's crashing, not the DmReleaseRecord.
>
>Unlock it with the pointer instead; no need to get the handle to do that.
>
>
>>This leads to another question: why can't the handle be recovered properly?
>
>A different mechanism is used.  See the sources for the current
>implementation details...
>
>-David Fedor
>Palm Developer Support



Reply via email to