Scott,
I see a comment in our source code control system that this problem was fixed on
12/06/00 (the test for zero objects was made at the end of a loop instead of at
the top, leading to accesses to non-existant objects). Sounds like it was found
too late to make it on to the ROMs on the CD and Web site.
-- Keith Rollin
-- Palm OS Emulator engineer
"Red Mercury" <[EMAIL PROTECTED]> on 12/26/2000 12:28:40 PM
Please respond to "Palm Developer Forum" <[EMAIL PROTECTED]>
Sent by: "Red Mercury" <[EMAIL PROTECTED]>
To: "Palm Developer Forum" <[EMAIL PROTECTED]>
cc: (Keith Rollin/US/PALM)
Subject: OS 4.0 PrvPointInObject crash
Hi -
I thought this was strange.
In most Red Mercury games, the main form resource has no objects on it. The
form just sits there, and everything is drawn on top of it. penDownEvents on
game objects are handled internally. penDownEvents that aren't on game
objects are passed through to the system event handler.
Under PalmOS40dr2-en-VZColor-dbg the OS crashes if a penDownEvent is passed
on to a form with no objects on it.
If I add one object (a LABEL that displays a single space), the crash does
not happen.
When the penDownEvent is passed on to the form with no objects:
The emulator says:
"TheApplication" 1.0 has just performed an illegal operation. It performed a
"bus error".
The debugger says:
'PrvPointInObject'
+$007A 100743FC *BTST #$0007,$000A(A0)
The A0 register says:
A0: 22680008
The stack trace says:
FrmDispatchEvent+0046
PrvSendEventToForm+0036
FrmHandleEvent+0088
PrvPointInObject+007A
The application is built under GCC/Pilrc.
The emulator is v3.0a8e16.
Hope that's helpful to someone,
Scott
--
Scott Corley <[EMAIL PROTECTED]>
Red Mercury, LLC
http://www.red-mercury.com
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/