Mailing Lists: Apple Mailing Lists

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

crash in getKEXTVersionStringFromIdentifier



Hi,

I am getting a crash when I call getKEXTVersionStringFromIdentifier with
an invalid bundle identifier.

The code is based on that suggested in the docs:
http://developer.apple.com/documentation/DeviceDrivers/Conceptual/WritingDeviceDriver/InternationalizingDrivers/chapter_7_section_3.html


Here is the code
////
CFURLRef BundleURL;
CFBundleRef MyBundle;

BundleURL =
KextManagerCreateURLFrorBundleIdentifier(CFAllocatorGetDefault(),
CFSTR("blah")

MyBundle = CFBundleCreate(NULL, BundleURL);
////

The stack for the crash is as follows:

CFGetAllocator
CFURLGetFileSystemRepresentation
_CFBundleCreate
getKEXTVersionStringFromIdentifier


The code always seems to crash when an invalid identifier is passed to
the function.

I am using OS 10.4.9

Thanks,
Brett.
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-drivers mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/darwin-drivers/email@hidden

This email sent to 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.