Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
General
GeneralPortable MacsHardwareNetworking
Applications
Mac ApplicationsEudoraFirefox / MozillaInternet ExplorerOutlook ExpressMS OfficeEntourageExcelPowerPointWordVirtual PCMedia PlayerOther MS Products
Programming
Mac ProgrammingCodeWarriorPerl
Country Specific
Australian Mac GroupUK Mac Group

Mac Forum / Programming / CodeWarrior / October 2005



Tip: Looking for answers? Try searching our database.

Callbacks and globals

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
cgriffin@host1web.com - 24 Oct 2005 18:42 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
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

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.