Re: 10.2.4 OBEX connection Bug
D'oh. Apparently we can't send attachments to the mailing list. We'll have to release the sample code through DTS. Sorry for the false start, Jason bubba@apple.com
Huh, that's weird... Anyway, here they are!
Jason
bubba@apple.com
Jason,
Looks like you forgot the attachment for the OBEXSample code. This will be
useful. Can you please attach and send.
Thanks,
Paul Davis
On 3/3/03 12:31 PM, "Bubba Giles" <bubba@apple.com> wrote:
Hi Diggory,
I have a TDK bluetooth Adapter and A Nokia 6310 phone. - I am running
10.2.4
I have been noticing strange behaviour in pairing / connecting to the
phone since upgrading to 10.2.4
I have been using the Obj-C OBEX classes (much like in OBEXSample) in
my own app.
Are you retaining the OBEXSession after it is created? They are now
autoreleased upon creation, and if you do not retain it, it will go away at
the end of the runloop. Attached is the latest OBEXSample code, for your
reference.
Under 10.2.4 I often have to unplug my USB adapter and re-attach it
before my mac will sucessfully make an OBEX connection to the phone.
When it fails to connect I either get kOBEXSessionNotConnectedError
(or sometimes 4 which does not seem to be a valid return code)
0x04 is a page timeout error code, meaning that the device could not be
detected to even create a connection. That code is defined in Bluetooth.h:
kBluetoothHCIErrorPageTimeout = 0x04
That is a code that is returned from the TDK adapter. I should probably not
be returning Bluetooth error codes; an oversight on my part.
When this happens I must unplug-replug to get connections going again.
This did not happen before 10.2.4
This happens in Address Book too.
Very occasionally this causes my app to crash - and by the look of the
crash report - it's not in my code: Is this crash dump useful?
Yes, it is useful - it looks like a crash trying to message a released
object, pretty typical for objc.
Any chance you can send us a copy of the app you are working on? That will
make it easy for us to reproduce, as we have a TDK adapter we can try.
Another thing I noticed is that when the user cancels the snazzy new
bluetooth Service Discovery sheet it seems to return -1001 and not
kIOBluetoothUIUserCanceledErr (-128) like the old one used to.
We have changed the return values to our own defines, they are now:
enum
{
kIOBluetoothUISuccess = (-1000), // Same as
NSRunStoppedResponse
kIOBluetoothUIUserCanceledErr = (-1001) // Same as
NSRunAbortedResponse
};
Sorry for the confusion. These will be available in the headers of our next
developer release.
Jason
bubba@apple.com
[demime 0.98b removed an attachment of type application/octet-stream which
had
a name of MyWindow.m]
Play Scrabble with the new Scrabble CD-Software.
Get it for FREE now
http://www.yourmailsource.com/click.asp?lnk=9403&email=JGILES@CHAOTICSOFTWARE>>
.
COM&ds=71
________________________________________________________________________
At YourMailSource.com, our aim is to send mail only to those who want to
receive it. As a leader in web-based marketing, we take your preferences
very seriously. If you wish to unsubscribe from future campaigns, please
visit the following website (or copy and paste the following line into your
browser) and your address will automatically be removed :
http://www.YourMailSource.com/unsubscribe.asp?emid=7046&email=JGILES@CHAOTICS>>
O
FTWARE.COM
Third-party offers contained in this email are the sole responsibility of
the
offer originator.
Help us to responsibly reduce the amount of unwanted traffic on the internet
by registering a complaint at:
http://www.fairmailing.com/fairmailing.asp?emid=7046&email=JGILES@CHAOTICSOFT>>
W
ARE.COM&mail_type=YMS;&user_id=2133054082
Best Regards,
Privacy Advocate
YourMailSource.com
1880 Oak Avenue
Evanston, IL 60201
privacyadvocate@yourmailsource.com
<!--2133054082-->
________________________________________________________________________
[demime 0.98b removed an attachment of type application/octet-stream which had
a name of MyWindow.h]
[demime 0.98b removed an attachment of type application/octet-stream which had
a name of MyWindow.m]
_______________________________________________
bluetooth-dev mailing list | bluetooth-dev@lists.apple.com
Help/Unsubscribe/Archives:
Do not post admin requests to the list. They will be ignored.
_______________________________________________ bluetooth-dev mailing list | bluetooth-dev@lists.apple.com Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/bluetooth-dev Do not post admin requests to the list. They will be ignored.
participants (1)
-
Bubba Giles