> I get memory leak errors even when I have reduced the code down to a small
> stub. I have several global data structures declared using 'static'. Does
> any one know if global data gets moved around by the Palm OS. I get the
> memory leak errors when I enter and immediately exit the application...
even
> though all I have done is display a form and nothing else.
Memory leaks are caused when you allocate memory (either a handle or a
pointer) and do not delete it, or when you prevent normal cleanup peformed
by the OS from happening.
Your static global data is not the problem (unless you allocate a handle,
store it in global data, and don't free it, of course!).
Make sure that if you handle the form's close event, you return false. If
you handle this event and return true, you prevent the OS from performing
its cleanup on the form.
If that's not it, then you are surely allocating memory somewhere and not
freeing it.
Hope this helps.
Jeff
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/