If you load a library with SysLibLoad, then you should unload it. If you
didn't load it (SysLibFind was successful), then you should not unload it.
If you open a library (using it's Open call) then you should close it (using
it's Close call).
Kevin
> -----Original Message-----
> From: Jason Simpkins [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, August 16, 2000 8:25 PM
> To: Palm Developer Forum
> Subject: Loading and unloading libs
>
>
> Howdy,
>
> I've finally isolated the exact spot in my code that creates
> the memory
> leak, it is when I
> load the MathLib library using SysLoadLib function. I also
> read that you
> have to unload a
> library using the SysLibRemove function. Well I've been
> unsuccessful in
> unloading the math lib can someone show me some sample code
> that does this
> correctly? Second, I also found in the source for the
> MathLib.c a function
> to close the MathLib, MathLibClose, is this required? Do I
> have to close the
> Mathlib then remove the library? Documention is pretty scetchy here.
>
> Thanks,
> Jason
>
>
> --
> For information on using the Palm Developer Forums, or to
> unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/
>
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/