> Is there a way to patch a trap in the dispatch table of a loaded library??
This has been discussed before. If the dispatch table is in RAM, you can modify it. If it's in ROM, you'll have to copy it into RAM first. This isn't easy. The dispatch table contains 16-bit offsets to JMP instructions. These JMP instructions are limited to a +- 32K range, so they won't be able to "reach" the original library code in ROM. You'll have to use a more complicated long jump sequence. I haven't done this; the above is based on my understanding of how shared library dispatching works. An alternative is to patch the library dispatch trap. This slows down all library dispatches, but is probably easier. - Danny @ Palm -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/
