Error -10827 from Launch Services
Error -10827 from Launch Services
- Subject: Error -10827 from Launch Services
- From: Rob Minnis <email@hidden>
- Date: Mon, 12 Jan 2004 10:24:18 -0600
Does anyone know what error -10827 means? I'm trying to launch an
application but, after getting the URL, Launch Services always (or,
almost always) returns this error code.
After receiving this error, I cannot launch the application at all:
even from the Finder. The Finder complains that the app may be damaged
or incomplete but, as far as I can tell, the only differences between
the trashed copy and a fresh copy is the .DS_Store files.
TIA,
Rob Minnis
email@hidden
====================
For testing, this code is called immediately upon application launch
(i.e. main()). In the few cases where it does work, the code is called
after the application is completely launched (NSApplication has
performed it's voodoo) but it can only be called once (after the first
time, the GetBundle() call fails.
CFBundleRef mainBundle =
CFBundleGetBundleWithIdentifier(CFSTR("us.minnis.BugReporter"));
if(mainBundle != NULL)
{
CFURLRef bundleURL = CFBundleCopyResourceURL(mainBundle, CFSTR("Bug
Reporter.app"), NULL, NULL);
if(bundleURL != NULL)
{
LSLaunchURLSpec spec = {bundleURL, NULL, NULL,
kLSLaunchDontAddToRecents, NULL};
OSStatus status = LSOpenFromURLSpec(&spec, NULL);
if(status == noErr) return;
}
}
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.