I have some code in CW that has two routines that get called from an
outside source. When the first one is called it crashes. I tracked it
down to the fact that the RTOC register is not set up to access the
globals. When I look at the asm at the top of the callback routine I
see that RTOC is expected to be set before entry. I'm calling this code
from Mach-O and the CW code is PEF. The call works and the parameter
is correct it's just that the globals are not accessable. Is there some
way I have to declare these routines to get this to work?
Thanks.
David Phillip Oster - 25 Oct 2005 02:22 GMT
> I have some code in CW that has two routines that get called from an
> outside source. When the first one is called it crashes. I tracked it
[quoted text clipped - 6 lines]
>
> Thanks.
Take a look in:
<http://developer.apple.com/samplecode/Carbon/idxRuntimeArchitecture-date.html>
There is sample code there to go in either direction.

Signature
David Phillip Oster