Whenever I've seen this error, it almost always happened because window API
code in some form's frmOpenEvent handler executed.  To prevent it, in
frmOpenEvent handlers I got into the habit of setting the draw window to the
current window if the draw window was null .

Try running Gremlins under the debugger, letting it run close to the failure
point, then stepping through the code to find out which form is being opened
(if that's the problem).

I hope that helps.

Mark Peters

"Richard Coutts" <[EMAIL PROTECTED]> wrote in message
news:103788@palm-dev-forum...
>
> I'm having a really tough time nailing down this error that's surfacing
> every 100,000 events or so when running gremlins.  The error is:
>
>      MyApp (1.0) just read from memory location 0x8000000020.  This access
>       usually indicates that the application is calling a Window Manager
>       function without first establishing a valid DrawWindow.
>
> I've debugged this error before when I called certain functions before
> establishing a DrawWindow, but in this instance I'm getting flagged in
> fairly benign parts of my code than run without a problem 99% of the time.
> For some reason when I step through the app, things get handled normally,
> but when the gremlin's running at full tear, I have this problem.
>
> Sorry for such a vague post, but I've spent a couple days chasing this
ghost
> and am wondering if anyone has seen a bug like this and has advice as to
how
> to track it down.
>
> Thanks!
> Rich
>
>
>



-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to