At 11:10 AM -0700 1999/04/23, Alan Pinstein wrote:
>Ok... I've had several requests for more details, so here it is. Enjoy!
>...
> // install my HACK
> gOldAddr = SysGetTrapAddress(0xA0A9);
> Err error =   SysSetTrapAddress(0xA0A9, DebugHackMain);
> ErrNonFatalDisplayIf(error, "AppStart - SysSetTrapAddress Failed");

(Personally, I think this is pretty clever. :o)

But, just a word of caution... 0xA0A9 = sysTrapSysHandleEvent so if you're hack ALSO 
patches the SysHandleEvent trap (which we suggest it NOT by the way...) you'll 
probably crash. You may also run into some low-memory problems, as a SysAppLaunch is 
rather 'expensive' from that standpoint.

Regards,

Jim Schram
3Com/Palm Computing
Partner Engineering

Reply via email to