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.
Did you call FrmDeleteForm before calling FrmReturnToForm(0)? If so, you're "double freeing" the form's data structure, since FrmReturnToForm will delete the current form for you.
-- Ben Combee, Technical Lead, Developer Services, PalmSource, Inc. "Combee on Palm OS" weblog: http://palmos.combee.net/ Developer Fourm Archives: http://news.palmos.com/read/all_forums/
-- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
