a leak? please help
a leak? please help
- Subject: a leak? please help
- From: Eric Flatt <email@hidden>
- Date: Tue, 20 Jul 2004 22:05:46 -0400
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 | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/bluetooth-dev
Do not post admin requests to the list. They will be ignored.