*Please correct me if you find any of my assumption
wrong.  

I have this test application contains two forms.  Both
form contains a list which is populated from database
on FrmOpenEvent.  I have a function which allocates
memory and populates data and Callback function to
draw list.

When I exit my application it gives me one memory
leak, no matter how many times I toggle between these
two forms.   So I reached to a conclusion that
FrmCloseEvent automatically realse the memory of a
form if you are jumping to second form.  I don't have
any cleanup code on form close event. 

If I write code on FrmCloseEvent 
MemPtrFree(ListData) ;
handled = false ;

Application crashes when I try to jump to second form,
if I exit application from first form I get no memory
leaks and any crashes.  


Please help me understand this issue and suggest any
solution.

Thanks in advance.


__________________________________________________
Do you Yahoo!?
Faith Hill - Exclusive Performances, Videos & More
http://faith.yahoo.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