> Now the ROM will pop up a dialog telling me to call FrmEraseForm before the > FrmDeleteForm. > I could not find this requirement in the Reference guide. The problem lies with forms with the saveBehind bit set. FrmDrawForm actually saves the area behind the original form to a memory buffer, which is freed by FrmEraseForm. It also clears the visible attribute, which is about what FrmDeleteForm is complaining. Thw only documented way to make a form non-visible is to erase it. FrmDeleteForm doesn't do anything with the saved bits, so if you delete a form without erasing it first, you run the risk of leaking memory. > Also, I thought FrmSetActiveForm made any calls to WinSetDrawWindow > unecessary, but that's not the case. > > Sometimes, the ROM will blow up on calls to draw on the window if I do not > call WinSet... before it. No... on a debug ROM, it clears the active drawing window, setting it to NULL. On release ROMs, it sets it to the full screen. This is intentional -- you must restablish the draw window. -- Ben Combee Veriprise Wireless <http://www.veriprise.com> -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/
