I believe that you should not close a form using FrmReturnToForm when it was 
opened using FrmGotoForm.

Try either invoking with FrmPopupForm and returning with FrmReturnToForm or 
invoking with FrmGotoForm and returning with FrmGotoForm also (in which case 
you must handel the frmCloseEvent (and to avoid memory leak you need to 
return handled = false in that event).

I though this was clear from the docs but I reread them and it is not so 
clear so I may be wrong.

Benoit

"Steve" <[EMAIL PROTECTED]> a �crit dans le message de news: 
[EMAIL PROTECTED]
> I've got quite a few pop-up forms in my Application which I invoke with 
> FrmGotoForm and then close with FrmReturnToForm(0).
>
> On the Palm Garnet Simulator I get a "memorymgr.c, Line:3752, Free ptr" 
> error when FrmReturnToForm(0) is invoked.  This happens for all my forms 
> (I'm consistent ;-), one, for example has two buttons, a label and a 
> single Field (text).
>
> I am not allocating any memory myself when this form is loaded / drawn.
>
> Any ideas ?
> 



-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to