> case frmOpenEvent:
>   /* do custom drawing */
>    frmP = FrmGetActiveForm();
>
>     /* Draw the lines between the arrows*/
>    WinDrawLine(13,15,13,121);
>    WinDrawLine(10,15,10,124);
>    WinDrawLine(13,121,160,121);
>    WinDrawLine(10,124,160,124);
>     FrmDrawForm (frmP);
>    handled = true;
>    break;
>
> I get a bus error When the WinDrawLine() call is used.. This only happens
> when I run my program on a debug rom.. The programs looks and behave fine on
> a regular rom.. If I remove WinDrawLine() all is well on both Roms.
>
Don't draw until *after* the FrmDrawForm(frmP).

Also, make sure you handle the frmUpdateEvent:
case frmUpdateEvent:
   frmP = FrmGetActiveForm();
    FrmDrawForm (frmP);
    /* Draw the lines between the arrows*/
   WinDrawLine(13,15,13,121);
   WinDrawLine(10,15,10,124);
   WinDrawLine(13,121,160,121);
   WinDrawLine(10,124,160,124);
   handled = true;
   break;


Neil

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