When she said power goes off...I immediately thought she was talking
about the power going off, she was thinking that the library was going
with it. Sorry for the confusion!
I think it's a very good idea for your application to unload a loaded
library in the AppClose (or whatever) function of your app. I've used
serial libraries, and forgotten to unload the library, and it would
occasionally do some pretty odd things. By turning the Palm off, the
library does NOT unload itself automatically, as Jeff said. This is
up to you to do. It also depends on what your shared library does,
too. If it doesn't mess with the hardware much, and is fairly "innocent"
as far as shared libs go, then it shouldn't pose much of a problem...but
it's still a good practice to unload it yourself. It's not much work
to do, usually just a few lines or so of code. (taking into account
exception handling)
-Rus
>Hello again Angel. If you fail to unload a loaded library, it
>simply hogs a
>slot in the OS's array of loaded libraries. This is what you
>access through
>the SysLibTblEntry( UInt refNum) API, where the refNum is
>really just the
>index of a dynamic array.
>
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/