I finally got around to testing my app with the 3.5 debug ROM (specifically
palmos35-dr4-en-ezdbg.rom).

Emulator version 3.0a3 set on Palm IIIx with 4 meg memory.
Windows 98
Code Warrior release 5 with both patches.

I have a mainForm that is set with usable checked,  modal unchecked, and save
bits behind unchecked.

I have Alert forms, CustomAlert forms and other forms that are all set as
usable, modal, and save bits behind.

When any one of the forms above is opened and then disposed of on the mainForm,
some of the bits behind are not restored.  Since I have been following this very
useful forum, I know that the first thing to check is if I am drawing anything
to the form, before FrmDrawForm has been called.  This is not the case.  I am
careful to draw after FrmDrawForm is called.  Actual code that exhibits this
behavior is:

FormPtr frmP = FrmGetActiveForm();
FrmDrawForm(frmP);
WinDrawLine(1, 159, 159, 1);
FrmAlert(CorrectAlert);

Following this in the debugger shows that frmP is obtained, the form is drawn,
the line is drawn, and the alert pops up.  Tapping OK dismisses the alert and
the part of the line that was covered by the alert is no longer there.  The same
problem occurs with FrmCustomAlert or with any other form which covers part of
the mainForm and is then dismissed.  The same code works fine with OS 3.3 or
earlier.  Am I missing something obvious, or is this a bug in OS 3.5?

Thanks.

Keith

Reply via email to