Re: IOBluetoothDeviceOpenRFCOMMChannelAsync fails on Leopard\Intel
Re: IOBluetoothDeviceOpenRFCOMMChannelAsync fails on Leopard\Intel
- Subject: Re: IOBluetoothDeviceOpenRFCOMMChannelAsync fails on Leopard\Intel
- From: "Brian M. Criscuolo" <email@hidden>
- Date: Tue, 6 May 2008 16:23:01 -0400
Christian,
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.
b
On May 6, 2008, at 3:24 PM, Christian Martin wrote:
Hi,
I had an application that worked perfectly well on Tiger/Intel.
Oddly, the same code fails on Leopard/Intel. Any reason why ?
IOReturn ret = IOBluetoothDevicePerformSDPQuery(m_device, NULL, NULL);
CFArrayRef deviceServices = IOBluetoothDeviceGetServices(m_device);
IOBluetoothSDPServiceRecordRef svRec =
(IOBluetoothSDPServiceRecordRef)
CFArrayGetValueAtIndex(deviceServices, 0);
ret = IOBluetoothSDPServiceRecordGetRFCOMMChannelID(svRec,
&m_rfcommChannelID);
if (ret != kIOReturnSuccess) goto err;
ret = IOBluetoothDeviceOpenRFCOMMChannelAsync(m_device,
&m_RFCOMMChannelRef, m_rfcommChannelID, Callback_OnEvent, this);
********* FAILS HERE !!???
Thx
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 (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
********************
Brian M. Criscuolo
Lead Software Engineer
Mark/Space, Inc.
email@hidden
<http://www.markspace.com>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Bluetooth-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden