I have been trying to replace the EvtGetEvent systrap
with my custom function.
I call SysGetTrapAddress and then save the address
returned by it to feature memory and set the TRap to
my function like so.
case MainOptionsSetTrap:
EvtGetEventAddr=SysGetTrapAddress(sysTrapEvtGetEvent);
error=FtrSet (creatorID,
EvtGetEventTrap,(DWord)EvtGetEventAddr);
SysSetTrapAddress(sysTrapEvtGetEvent,&MyEvtGetEvent);
break;
In MyEvtGetEvent I read the Original trap address and
invoke it for some reason it works fine within my app
but when I quit the application the Systrap does not
work
does anyone know the cause? I know I could use
HackMaster, but I would like to understand why this
fails.
Thanks
Jay
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/