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 / January 2005



Tip: Looking for answers? Try searching our database.

9.4 & Libs ...

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
verec - 30 Jan 2005 00:24 GMT
I was happily humming along with parallel development
in Xcode 1.5 and CW 9.3 when CW 9.4 came along. Being of the
adventurous kind, I immediately installed the update, recompiled
everything I could think of, and now, the same source base which
runs fine when compile with Xcode 1.5, now crashes with CW 9.4:

access fault exception

OS::GetCurrentProcess(ProcessSerialnumber *)
HIServices 0x939939E8 (PPC)
HIServices 0x9399EEE4 (PPC)
HIServices 0x939A2A74 (PPC)
CoreGraphics 0x93613774 (PPC)
CoreGraphics 0x9368B244 (PPC)
libSystem.B.dylib 0x90007EA4 (PPC)
CoreGraphics 0x9367F89C (PPC)
CoreGraphics 0x93672398 (PPC)
CoreGraphics 0x93671200 (PPC)
CoreFoundation 0x901CB534 (PPC)
CoreFoundation 0x901C6A40 (PPC)
CoreFoundation 0x901B01AC (PPC)
CoreFoundation 0x901C6BC0 (PPC)
CoreFoundation 0x9019F23C (PPC)
CoreFoundation 0x901AB1C4 (PPC)
CoreFoundation 0x9019D680 (PPC)
CoreFoundation 0x901A0F28 (PPC)
CoreFoundation 0x9019AD08 (PPC)
CoreFoundation 0x901A19FC (PPC)
CoreFoundation 0x9019793C (PPC)
CoreFoundation 0x901951A8 (PPC)
CoreFoundation 0x90191ECC (PPC)
libSystem.B.dylib 0x90001054 (PPC)
libSystem.B.dylib 0x90002D4C (PPC)
libSystem.B.dylib 0x90002F78 (PPC)

To me this looks like I'm somehow linking to the
wrong libary, or against an incorrect version
of whatever framework that contains GetCurrentProcess

Any hint?

Many Thanks,
--
JFB
verec - 30 Jan 2005 14:26 GMT
Hmmm.

It appears that if I modify Application Package.c inside
/Applications/Metrowerks CodeWarrior 9.0/(CodeWarrior Examples)/MacOS X
Examples/Application Package/Application Package Source

so that it reads:

int main(void) {
   Initialize();
   
   ProcessSerialNumber psn = {0, 0} ;  
   GetCurrentProcess(&psn) ;
   
   NoteAlert(kAlertID, NULL);
   
   return 0;
}

Then it compiles AND runs, so GetCurrentProcess does inded work & link
with the current 9.4 libs.
I checked my own project with respect to which libs were included, how
the access path were set,
but couldn't see anything that could explain the crash ...

Scratching my head ...
--
JFB
 
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.