Re: IOBluetoothRFCOMMChannel and memory management
site_archiver@lists.apple.com Delivered-To: bluetooth-dev@lists.apple.com On Sep 24, 2009, at 6:21 AM, Hugh Cole-Baker wrote: - Peter _______________________________________________ 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 am writing an application that communicates using an RFCOMM channel to a mobile phone. I use the openRFCOMMChannelAsync:withChannelID:delegate: method of IOBluetooth device to open the channel. The docs for this method state "The RFCOMM channel object is already retained when this function returns success; the channel must be released when the caller is done with it" so I don't retain the object from my code while using it. Apple's sample code (RFCOMM_Open_SPP_Example) does retain the rfcomm channel object upon a successful return from - [openRFCOMMChannelAsync:withChannelID:delegate], so I suspect the documentation is outdated. This email sent to site_archiver@lists.apple.com
participants (1)
-
Peter Sichel