Re: MoreSCF 1.1 and Cross-Development
Re: MoreSCF 1.1 and Cross-Development
- Subject: Re: MoreSCF 1.1 and Cross-Development
- From: Tobias Walser <email@hidden>
- Date: Tue, 23 Oct 2007 18:03:32 +0200
I've got this error in my release build... BUT with your fix (the
correct one of course) it works just perfect!
Thanks a lot for your help and your patience!
Regards
Tobias
On 23.10.2007, at 15:21, Quinn wrote:
The port name warning is unrelated to the crash. The port name
warning is explained in the comments in "MoreSCFPortScanner.h". Check
'em out.
The crash is a bug in MoreSCF <rdar://problem/5517319>. Specifically,
there's an incorrect assert in the code. This won't affect
production code (which is one of the reasons I haven't revved the
sample), but it causes a false assert on the debug build. The easy
fix is to comment out the lines:
assert(onHoldRef != NULL);
assert( CFGetTypeID(onHoldRef) == CFNumberGetTypeID() );
The correct fix is to replace the lines:
onHoldRef = (CFNumberRef) CFDictionaryGetValue([...]);
assert(onHoldRef != NULL);
assert( CFGetTypeID(onHoldRef) == CFNumberGetTypeID() );
if ( (onHoldRef != NULL) && CFNumberGetValue([...]) &&
(onHold != 0) ) {
assert(onHold == 1); // would be weird otherwise
gDefaultCCL = CFSTR("Apple Internal 56K Modem (v.92)");
CFQRetain(gDefaultCCL);
}
with:
onHoldRef = (CFNumberRef) CFDictionaryGetValue(
thisPort,
kSCPropNetInterfaceSupportsModemOnHold
);
if (onHoldRef != NULL) {
assert( CFGetTypeID(onHoldRef) == CFNumberGetTypeID() );
if ( CFNumberGetValue(onHoldRef, kCFNumberIntType, &onHold)
&& (onHold != 0) ) {
assert(onHold == 1); // would be weird otherwise
gDefaultCCL = CFSTR("Apple Internal 56K Modem
(v.92)");
CFQRetain(gDefaultCCL);
}
}
Share and Enjoy
--
Quinn "The Eskimo!" <http://www.apple.com/developer/>
Apple Developer Relations, Developer Technical Support, Core OS/Hardware
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40bluewin.ch
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden