Re: loading kext from a daemon program
site_archiver@lists.apple.com Delivered-To: darwin-kernel@lists.apple.com NSArray* argArray= [NSArray arrayWithObjects: /*List of args*/, NULL; NSString* kextLoatPath= @"/sbin/kextload"; NSTask* taskObj= [NSTask launchedTaskWithLaunchPath: kextLoatPath arguments: argArray]; if(taskObj!= NULL) { [taskObj waitUntilExit]; int termStatus= [taskObj terminationStatus]; } For the archives and completeness, here is what the cocoa version would look like... If your app was crashing with this my first guess was you were releasing one or more of the created objects, which would be wrong. If nothing else jumps out, send me your code snippet off list and I'll take a look. -- ______________________________________________________ Arguing with an engineer is like wrestling with a pig in mud. After a while, you realize the pig is enjoying it. ______________________________________________________ Kevin Elliott <mailto:kelliott@mac.com> AIM/iChatAV: kelliott@mac.com (video chat available) ______________________________________________________ _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-kernel mailing list (Darwin-kernel@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-kernel/site_archiver%40lists.a... This email sent to site_archiver@lists.apple.com
participants (1)
-
Kevin Elliott