Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: paramErr from LaunchApplication?



on 8/18/2003 5:13 PM, Kevin Grant at email@hidden wrote:

> Check that your FSSpec contains valid fields. If the applications come
> from different disk images they will have different volume reference
> numbers, and it may be the case that one of them happened to be valid
> (and worked), and one was not valid.
>
> Using FSMakeFSSpec() on the application spec will tell you if that is
> where the error is.

Well, you're close -- too close.

It turns out that the vRefNum for looking at the volume contents and the
vRefNum for launching are *different*. Unfortunately, there's no easy way
to get from one to the other.

Oh, and converting the path to an FSSpec (using system calls) returns the
*old* vRefNum, which works correctly for a call to FSpGetFInfo (to determine
whether the file is an application or not), but not for LaunchApplication.

Sounds like a bug to me...

--
Glenn L. Austin <><
Computer Wizard and Race Car Driver
<email@hidden>
<http://www.austin-home.com/glenn/>
_______________________________________________
carbon-development mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/carbon-development
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: paramErr from LaunchApplication? (From: Kevin Grant <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.