"Anton Nikolaev" <[EMAIL PROTECTED]> wrote in message
news:59614@palm-dev-forum...
>
> Hello, When I try to use drawing functions such as WinEraseRectangle
> WinDrawRectangle etc. in Palm OS 4   I got the following error:
> "MyApp 1.0 just read from memory location 0x80000020 This access
usually
> indicates that application is calling a Window Manager function
without
> first establishing DrawWindow. " The same error DOES NOT occur on PAlm
OS
> 3.5 ROM. Could anyone explain me my mistake?

Are you using a debug version of the Palm OS 4 ROM and a release version
of the Palm OS 3.5 ROM?  They act differently, with the goal of the
debug version to find more bugs.

You must either first draw your form using FrmDrawForm or set up your
drawing window using FrmSetDrawWindow before using these functions.  The
debug ROM sets the default draw window to the garbage value you see,
while the release ROM sets it to the full screen.



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