"dan mason" <[EMAIL PROTECTED]> wrote in message
news:77161@palm-dev-forum...
>
> After following the POSE 3.4 thread, I got the new version of the
emulator
> and took advantage of the memory leak detector, which is very cool.
It
> brought my attention to one thing in particular:
>
> My app basically instantiates a dynamic form (or a bunch of them),
draws
> it, adds a bunch of stuff to it, and then "clears the screen" by
deleting
> the form, making a new one, and drawing that new one.  I specifically
> avoid calling FrmEraseForm, because it is perceptibly slower on the
screen
> refresh than just calling FrmDeleteFrom followed by
FrmNewForm/FrmDrawForm
> (it does a vertical wipe of the screen instead of just blitting a
white
> rectangle over it, or something).  I had no idea this was causing any
> problems, because FrmDeleteForm documentation says that it erases all
the
> objects in the form and the form itself.

Set the screen to be the draw window, then call WinEraseRectangle on the
whole screen.  Alter your form, then call FrmDrawForm again to redraw
everything.  Repeat.  No need for form structures being
created/destroyed.



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