At 6:39 PM -0700 1999/05/10, Mark Campillo wrote:
>Can anyone tell me what is wrong with the following basic hack?  When I run
>this with the line "handled = oldTrap(fld, event)" commented out, it runs
>but
>consumes the event, as you would expect.  If I un-comment that line, I get
>the "Fatal Error" dialog and a reset for my troubles.

Does your FtrGet return an error? You're not checking for that... and getting your old 
trap address from feature 'test' #1000 looks rather suspicious...

Is oldTrap getting the correct procedure pointer? Try dropping into the Palm Debugger 
just before the call and disassemble the code at that address. Compare that to the 
code pointed to by disassembling FldHandleEvent... is is the same? Or is it getting 
set to the trap table entry address (as opposed to the original routine address)?

Just some things to look for...

Regards,

Jim Schram
3Com/Palm Computing
Partner Engineering

Reply via email to