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 / December 2003



Tip: Looking for answers? Try searching our database.

launch failure with CW 9 PPC app

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Greg Hasson - 05 Dec 2003 02:46 GMT
I have a PPC application that was previously built with CW 5 that I
imported into CW 9. After much effort and some help from this group,
it now builds under CW 9 (albeit with some warnings that probably need
attention)

The problem I'm having is when I run, the app fails during startup
with the following error dialog:

The application "(null)" could not be launched because of a shared
library error:
":<build target name><build target name><InterfaceLib> <>"

I tried changing project settings by removing InterfaceLib from the
Libraries-CFM file group and adding it to the Libraries-PPC group.
This resulted in the same runtime error but for a different library,
so I repeated the steps for that library.  After several iterations
for different libraries I wound up back at the first error with
InterfaceLib again.

Any suggestions on how to resolve this would be appreciated.
Greg
Brad Oliver - 05 Dec 2003 13:54 GMT
> Any suggestions on how to resolve this would be appreciated.

InterfaceLib-based apps will only run on MacOS 9 - is that where you're
testing this? If not, then you've got to switch over to CarbonLib, and
that's beyond the scope of a quick reply. :-)

--
Brad Oliver
bradman@pobox.com.AM_SPAY
Greg Hasson - 05 Dec 2003 22:39 GMT
> > Any suggestions on how to resolve this would be appreciated.
>
> InterfaceLib-based apps will only run on MacOS 9 - is that where you're
> testing this? If not, then you've got to switch over to CarbonLib, and
> that's beyond the scope of a quick reply. :-)

Thanks for your response :)

I was running it in the CW9 debugger on OS X. Since it is a PPC app I
guess I can't expect anything to work that way (sorry, seems silly to
have tried it now..)  When I run it under OS 9 I get a fatal error on
startup stating "The application has unexpectedly quit because an
error of type 12 occurred."

It's not a Carbon app and doesn't need to be, I only need it to run
under OS 9 natively, but I have to build it using CW 9 on OS X.
Sounds like what I *should* be doing is taking my OS 9 debug build and
running under the debugger on OS 9. Should this work? Running an OS 9
app built using CW 9 under the CW 5 debugger?
Brad Oliver - 06 Dec 2003 04:08 GMT
> Sounds like what I *should* be doing is taking my OS 9 debug build and
> running under the debugger on OS 9. Should this work? Running an OS 9
> app built using CW 9 under the CW 5 debugger?

I haven't debugged an InterfaceLib-based app in a long time, and
definitely not with CodeWarrior 9. However, that sounds like what you
should be doing. As I understand it, there's some special build of the
IDE that allows you to debug CodeWarrior 9 apps on OS 9, tucked away in
one of the Extras folders or CDs? Maybe Ron will chime in here with more
info.

--
Brad Oliver
bradman@pobox.com.AM_SPAY
Sean McBride - 15 Dec 2003 20:41 GMT
> I was running it in the CW9 debugger on OS X. Since it is a PPC app I
> guess I can't expect anything to work that way (sorry, seems silly to
> have tried it now..)  When I run it under OS 9 I get a fatal error on
> startup stating "The application has unexpectedly quit because an
> error of type 12 occurred."

Do you have Macsbug installed?  If not, and you call Debugger() or
DebugStr() you'll get err 12 IIRC.

> It's not a Carbon app and doesn't need to be, I only need it to run
> under OS 9 natively, but I have to build it using CW 9 on OS X.
> Sounds like what I *should* be doing is taking my OS 9 debug build and
> running under the debugger on OS 9. Should this work?

With CW 8 at least, you must run the IDE in Classic (or OS 9) to debug
Classic apps.

> Running an OS 9
> app built using CW 9 under the CW 5 debugger?

I doubt it.
 
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



©2009 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.