>... Not calling FrmDrawForm
>before the WinEraseRectangle gets called (in FrmHideObject), can result in
>this error. WinDrawRectangle also needs to have a form drawn first. My
>understanding is that with color, OS 3.5 is wanting to be clear where to
>draw to.
Exactly. You need to add a FrmSetActiveForm after your FrmDeleteForm, so
that there's a valid destination window/form for the drawing system to
target.
This is another example of where the debug rom tells you of a problem, and
the release rom makes a guess as to what the right thing is. By using the
debug rom you can spot and thus prevent potential problems.
-David Fedor
Palm Developer Support