On Fri, 2003-08-22 at 09:39, Giorgos Sarris wrote:
> Does anobody know how to fix this:
>
> I load my 'GameForm', and then I use
> "FrmPopupForm(AnotherForm);" to load another form on
> the GameForm. (As far it goes ok) then for example I
> change some settings and I want to get back to the
> first form (GameForm) and I use "FrmReturnToForm
> (0);". In some emulators it has no problem but on the
> debug emulator it
> gives 3 errors:
> 1)Free ptr
> 2)Invalid chunk ptr
> 3)Bad form
>
> I want the first form to remain loaded into memory and
> then return to it. I'm I forgeting anything?
According to PalmSource, the debug roms will crash unless you also
return 'true' from that event handler.
So:
FrmReturnToForm(0);
handled=true;
break;
}
[...]
return(handled);
}
They also said that they wouldn't recommend FrmPopupForm at all, as
they've heard no end of trouble with it. They recommended using
FrmDoDialog where possible instead.
-Ken
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/