I am having a problem which looks an awful lot like a memory leak, but I've played w/ every variable I could, released everything that appears to need to be released, and obviously am missing something somewhere.... Any pointers/tools (I did try the object alloc/dealloc tool already) would be greatly appreciated. The behavior is that after running for a while, the IOBluetoothDeviceRemoteNameRequest returns a status of "no memory". In relevant part: //The thing which calls: status=IOBluetoothNSStringToDeviceAddress( [a_person phone_id], &device_address ); inDeviceRef=IOBluetoothDeviceCreateWithAddress(&device_address); status = IOBluetoothDeviceRemoteNameRequest(inDeviceRef, RemoteNameRequestCallback, self, nil); //AFTER RUNNING FOR A WHILE, status above starts to return "no more memory" status //Here is the function which gets called (aka RemoteNameRequestCallback): NSString *deviceName; NSString *deviceAddress; BluePing *application=(BluePing*)userRefCon; BluePeople *a_person; BlueRoom *the_room = [application roomsweCover]; //I have tried releaseing all/any of these objects below, didn't help: deviceName=(NSString*)IOBluetoothDeviceGetName(deviceRef); deviceAddress=(NSString*)IOBluetoothDeviceGetAddressString(deviceRef); a_person=[application fetchPerson:deviceAddress]; IOBluetoothObjectRelease(deviceRef); //Documentation claimed this needed to be called, it doesn't appear to help one way or another. Thanks in advance for looking this over. -E _______________________________________________ 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)
-
Eric Flatt