Bluetooth - Crash - Malloc
Hello everyone,
I'm programming an application tat uses Bluetooth to communicate with another device, it was find on iOS 3 and earlier, but since iOS 4 it crashes, the console just tells me :
malloc: *** error for object 0x372cec: pointer being freed was not allocated
*** set a breakpoint in malloc_error_break to debug
This happens after this method is called with state = GKPeerStateConnected
- (void)session: (GKSession *)session peer: (NSString *)peerID didChangeState: (GKPeerConnectionState)state;
(my class is conforming to the GKSessionDelegate Protocol)
I'm not sure how to debug by adding that breakpoint, what does adding it allow me to see?
Also, can anyone tell me what iOS 4 has tweaked on the bluetooth communication for this to no longer work, as I said, it was working okay in iPhone OS 3.1.3 and earlier, so I think it's something that iOS 4 has tightened up on.
If anyone has any ideas...
Thanks
|