Re: IOBluetoothDeviceOpenRFCOMMChannelAsync fails on Leopard\Intel
site_archiver@lists.apple.com Delivered-To: bluetooth-dev@lists.apple.com Christian, b On May 6, 2008, at 3:24 PM, Christian Martin wrote: Hi, IOReturn ret = IOBluetoothDevicePerformSDPQuery(m_device, NULL, NULL); CFArrayRef deviceServices = IOBluetoothDeviceGetServices(m_device); if (ret != kIOReturnSuccess) goto err; ********* FAILS HERE !!??? Thx ******************** Brian M. Criscuolo Lead Software Engineer Mark/Space, Inc. bcriscuolo@markspace.com <http://www.markspace.com> _______________________________________________ Do not post admin requests to the list. They will be ignored. Bluetooth-dev mailing list (Bluetooth-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/bluetooth-dev/site_archiver%40lists.a... I have the same issue, I think. This error happens in the subsequent connection *after* you have a failure to connect in IOBluetoothDeviceOpenRFCOMMChannelAsync, even if the device service is available again. I've logged radar 5692399, which is still open. I suggest logging another bug and reference mine. There is some sort of issue within the BT framework that causes the channel ref to not be cleared on an unsuccessful connection, and I'm not aware of any resolution that works. I had an application that worked perfectly well on Tiger/Intel. Oddly, the same code fails on Leopard/Intel. Any reason why ? IOBluetoothSDPServiceRecordRef svRec = (IOBluetoothSDPServiceRecordRef) CFArrayGetValueAtIndex(deviceServices, 0); ret = IOBluetoothSDPServiceRecordGetRFCOMMChannelID(svRec, &m_rfcommChannelID); ret = IOBluetoothDeviceOpenRFCOMMChannelAsync(m_device, &m_RFCOMMChannelRef, m_rfcommChannelID, Callback_OnEvent, this); You could win $1000 a day, now until May 12th, just for signing in to Windows Live Messenger. Check out SignInAndWIN.ca to learn more! _______________________________________________ Do not post admin requests to the list. They will be ignored. Bluetooth-dev mailing list (Bluetooth-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/bluetooth-dev/bcriscuolo%40markspace.... This email sent to bcriscuolo@markspace.com This email sent to site_archiver@lists.apple.com
participants (1)
-
Brian M. Criscuolo