I am having problems getting my code to work on a 3.5 OS Emulator. I
was looking over this discussion from a while back and I have tried
some of the tips suggested but I'm still getting a bus error on the
3.5 EZ Debug ROM. I run my app on the color (non-debug) ROM and I
don't get the bus error. Any ideas what could be going on here?
The problem usually occurs in this code:
if ( ucode & lmSetLabelUC ) {
CategoryGetName(CurrentListDB, CurrentCategory, CategoryName);
CategorySetTriggerLabel((ControlType*)LMGetObjectPtr(ListCategoriesPo
pTrigger),CategoryName);
}
The call to CategorySetTriggerLabel is crashing. Other times I am
getting the error on the following line:
WinEraseLine(lTypeCoords);
where
#define lTypeCoords 2, 143, 10, 144
which is what led me to this old discussion.
Thanks for the help.
At 1:33 PM +0200 1/18/00, Mick Doe wrote:
>thanks a lot - this works.
>
>Actually I looked at the PalmOS source code: The problem can be solved
>only with
> WinSetDrawWindow (FrmGetWindowHandle(FrmGetActiveForm()));
>
>Keith Wolcott wrote:
> >
> > Mick,
> >
> > I spent some time yesterday checking my apps for 3.5 compatibility and I
> > have seen what seems to be exactly your situation. 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.
> >
> > OS 3.5 looks good. I did not run into any problems other than using
> > FrmDrawForm at the correct time.
> >
> > Keith
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palm.com/devzone/mailinglists.html