With production ROM everything runs fine.
With debug ROM, the emulator reports that
the program counter becomes invalid at the
end of the function animate (which does all
of its work correctly but only once)
and the debugger reports

EXCEPTION ID = $80
         100459EC  *RTS


That is how the code looks like:



static void animate (void) { Int16 xa, ... WinSetDrawWindow (FrmGetWindowHandle (FrmGetActiveForm ())); xa = ... WinDrawLine (xa, ya, xe, ye); }

static void waitForEvents (void)
{
EventType e;
do
 {
 EvtGetEvent (&e, 10); // wait max. 0.1 seconds
 if (!SysHandleEvent (&e)) // do system events
  if (!HandleMyEvent (&e)) // do my events
   animate (); // do animation
 }
// code here is not reached with debug ROM!
while (e.eType != appStopEvent);
}


I am using Debug ROM palmos35-de-nonezdbg.rom with Emulator Version 3.5

Thanks for a hint
Rudolf Polzer


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

Reply via email to