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 / June 2004



Tip: Looking for answers? Try searching our database.

Framework/bundle enrty/exit points using CALL_ON_LOAD/UNLOAD

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Vin - 29 Jun 2004 20:14 GMT
Hi,

I've searched the google archives on this subject, however what I
gleened and implemented doesn't seem to work.

Using 8.3 CW, I have both a framework and a bundle I am working with.

I added the following to the code:

/* main entry point : called at library load time */
extern void __MyInitialize(void);

void __MyInitialize()
{
}

#pragma CALL_ON_LOAD __MyInitialize

and to the Settings Pane (PPC MacOS X Linker), I added
"___MSInitialize" for the Main Entry Point item

I've set a breakpoint here in debugging a test app that uses the
bundle, but I never stop there.

Any ideas?  Am I on the right path

Thanks,
-Vin
MW Ron - 30 Jun 2004 14:47 GMT
>Hi,
>
[quoted text clipped - 21 lines]
>
>Any ideas?  Am I on the right path

With CodeWarrior 9  we added sn Init Entry Point along with the Main
Entry Point.  The reason is that on Mach-O  the Main entry point is just
a suggestion and not necessarily the entry point  (It seems like it is
often not an entry point at all).

And there are just problems with CodeWarrior and debugging Bundles which
were fixed by CW 9.   If you plan on doing much of these and if you are
doing 10.3 stuff then I highly suggest you upgrade to CW 9.  In the long
run this will save you time, and frustration.

Ron

Signature

 Metrowerks, one of the world¹s top 100 companies and influencers
    in the software development industry. - SD Times  May 2004
              http://www.sdtimes.com/2004sdt100.htm
     
                 Metrowerks, maker of CodeWarrior
Ron Liechty - MWRon@metrowerks.com - http://www.metrowerks.com

 
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.