Mailing Lists: Apple Mailing Lists

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

paramErr from LaunchApplication?



OK, I am *totally* baffled on this one!

Platform: Mac OS X 10.2.6, 768MB RAM

Wrinkle: Launching applications from different disk images.

Code:

if (isMacApplication(&theAppFSSpec))
{
LaunchParamBlockRec pb;

pb.launchAppSpec = &theAppFSSpec;
pb.launchAppParameters = NULL;
pb.launchBlockID = extendedBlock;
pb.launchEPBLength = extendedBlockLen;
pb.launchFileFlags = 0;
pb.launchControlFlags = launchContinue | launchNoFileFlags |
launchUseMinimum;

err = LaunchApplication(&pb);

if (err == noErr)
{
// Do stuff while running
}
}

For some reason, the first LaunchApplication succeeds, but the *second*
LaunchApplication call returns paramErr.

What am I missing here?

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



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.