In case it helps, I use the following two routines to do a similar
thing (popup a "Please Wait" form during lengthy operations), and
have had no trouble with them...
void PopupWaitForm( void )
{
FormPtr waitFormP = FrmInitForm( WaitForm );
RectangleType waitBounds;
FrmGetFormBounds( waitFormP, &waitBounds );
WinEraseRectangle( &waitBounds, 0 );
FrmDrawForm( waitFormP );
}
void TakeDownWaitForm( void )
{
FormPtr waitFormP = FrmGetFormPtr( WaitForm );
FrmEraseForm( waitFormP );
FrmDeleteForm( waitFormP );
FrmUpdateForm( FrmGetActiveFormID(), 0 );
}
I also only use this within a single routine: no event traffic while it's up.
Dave Johnson
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/