I have an app and a shared library both in Flash ROM. If 'appHandle' is a
handle to a resource in the app, and 'libHandle' is a handle to a resource in
the library, it appears that:

  MemHandleLock(appHandle);   // ok
  MemHandleUnlock(appHandle); // ok

  MemHandleLock(libHandle);   // ok
  MemHandleUnlock(libHandle); // bad, evil, reports "invalid handle"

  I think the error message is coming out of PrvHandleCheck().

So why the inconsistency, and just exactly what can I do? What should I do?

I've checked that the value of libHandle passed to both MemHandleLock() and
MemHandleUnlock() is the same. From the Palm sources, I can't see how
MemHandleLock() would be ok, and MemHandleUnlock() would not. The same checks
appear to made for both calls. What's different?

thanks,

djw

Reply via email to