Thanks Ben...

I was missing the "FrmCloseAllForms()" in the AppStop() routine. It fixed
one of the memory leak problem I mentioned. I am now working on another
memory written problem....



----- Original Message -----
From: "Ben Combee" <[EMAIL PROTECTED]>
Newsgroups: palm-dev-forum
To: "Palm Developer Forum" <[EMAIL PROTECTED]>
Sent: Monday, June 11, 2001 10:02 AM
Subject: Re: Memory leaks


> "Karanjit Siyan" <[EMAIL PROTECTED]> wrote in message
> news:52491@palm-dev-forum...
> >
> > I am developing an app for the palm that I am debugging using the POSE
> 3.2
> > 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.
>
> If you built this app from the Palm OS 3.1 SDK stationery, then you need
> to add a call to "FrmCloseAllForms()" to the AppStop() routine.  This
> will cause the open forms to be properly closed, and their memory freed.
> That could be the source of your leak.
>
>
>
> --
> 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/

Reply via email to