> > > DmGetResource should be matched with DmReleaseResource. I haven't looked
at
> > > the address app code, but maybe you haven't looked hard enough.
> >
> >download the OS source code - you'll see why it isn't there :)
> >
> >the API's are from mac days, but, on the palmos as it is right now,
> >DmReleaseResource() is actually an empty function. although one may
> >think it is good to call it, you actually dont need to.
>
> I wonder if that's entirely true... there are several system hacks for
> VFS-equipped systems that let programs be paged into memory
> part-by-part.  If you were using one of those, I think its entirely
> possible that DmReleaseResource would tell the hack that a resource wasn't
> being used anymore, so it could free the memory it was using.  That would
> be an immediate benefit of making this call.

  the VFS equipped resource locking dont force you to call DmReleaseResource
  tho :) thats the problem. ideally, this is what the API would be used
  for :) but, it isn't :)

  i just wrote a simple library to:

    - open database/file
    - get resource
    - release resource
    - close database/file

  so that it is transparent between ram + vfs. :) [needed that for lemmings]

---
Aaron Ardiri
CEO - CTO
Mobile Wizardry
http://www.mobilewizardry.com/



-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to