Got it by looking in the archives. Not only do you
-not- use FrmDeleteForm() when handling frmCloseEvent,
but you should return "false" to that event (even if
you do some of your own cleanup) and then the OS will
take care of deleting the form for you!
My problem was that I was actually handling frmCloseEvent
and returning "true". When I returned "false", both of
my problems went away.
--
-Richard M. Hartman
[EMAIL PROTECTED]
186,000 mi./sec ... not just a good idea, it's the LAW!
> -----Original Message-----
> From: Richard Hartman
> Sent: Tuesday, January 25, 2000 10:30 AM
> To: Palm Developer Forum
> Subject: RE: Help Request: Basic Form Handling Problem
>
>
> Thanks. That did it.
>
> Question: should I do this on frmCloseEvent, or
> not wait for the OS to notify me and just do it
> every time before calling FrmGotoForm()?
>
> --
> -Richard M. Hartman
> [EMAIL PROTECTED]
>
> 186,000 mi./sec ... not just a good idea, it's the LAW!
>
>
> > -----Original Message-----
> > From: Jason Simpkins [mailto:[EMAIL PROTECTED]]
> > Sent: Monday, January 24, 2000 4:17 PM
> > To: Palm Developer Forum
> > Subject: Re: Help Request: Basic Form Handling Problem
> >
> >
> > When switching between forms be sure to delete the form you
> > just left. FrmDeleteForm(frm); << should do it. Then use a
> > FrmGotoForm(frm).
> >
> > But I still can't my app to work with the POS PalmOS 3.3!
> >
> > j
> >
> > Richard Hartman wrote:
> >
> > > Would somebody be willing to take a look at my code
> > > and see where I am slipping up? I am using Codewarrior
> > > R5 and Pose. The sequence to reproduce the error is this:
> > > Run dunsel
> > > Select an item
> > > tap "Edit"
> > > (note: edit form drawn over list form -- this
> > > is something I solved before but it came
> > > back ... if someone could tell me why, that
> > > would be nice, but this is -not- the killer bug
> > > and I will probably be able to re-track this
> > > down...)
> > > Now tap "Done"
> > >
> > > At this point, POSE chokes and pops up a kill/reset dialog
> > > with the following error:
> > > "Form.c, Line: 117, Form already loaded"
> > >
> > > For anyone willing to help, the project can be found at:
> > > http://www.catslair.com/tech/palm/dunsel.zip
> > >
> > > Thanks in advance,
> > >
> > >
> > > --
> > > -Richard M. Hartman
> > > [EMAIL PROTECTED]
> > >
> > > 186,000 mi./sec ... not just a good idea, it's the LAW!
> > >
> > > ---
> > > For information on using the Palm Developer Forums, or to
> > unsubscribe, please see
> <http://www.palm.com/devzone/mailinglists.html>.
>
>
> ---
> For information on using the Palm Developer Forums, or to unsubscribe,
> please see <http://www.palm.com/devzone/mailinglists.html>.
>
> ---
> For information on using the Palm Developer Forums, or to
> unsubscribe, please see
<http://www.palm.com/devzone/mailinglists.html>.
---
For information on using the Palm Developer Forums, or to unsubscribe, please see
<http://www.palm.com/devzone/mailinglists.html>.