Hi,

I'm working on some code that uses the following sequence
for every button that switches forms:

    (within case of event type switch):
      FrmEraseForm (frm);
      FrmDeleteForm (frm);
      FrmGotoForm (NextForm);
      break;

I've just been calling FrmGotoForm without hassle for some
time (since it's documented as doing the erase and delete) and
the above code made me nervous so I hunted through
the archives and got some opinion that suggested that this was
appropriate because PalmOS doesn't always action the
FrmDeleteForm.

What worries me is that if FrmDeleteForm releases the form's
memory what happens when this event loop gets the close
event that the FrmGotoForm will trigger?  What happens if the
code for that close event checks a control property?

Although this obviously runs I'm getting a confused message on
whether it's dangerous, required or somewhere in between.

Chris Tutty



-- 
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