Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 08-11-2010, 12:14 PM   #1 (permalink)
Registered Member
 
Join Date: Feb 2010
Posts: 83
djp_phillips is on a distinguished road
Cool 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
djp_phillips is offline   Reply With Quote
Old 08-12-2010, 04:33 PM   #2 (permalink)
Registered Member
 
Join Date: Jul 2009
Location: U.S.A.
Posts: 5
verakot is on a distinguished road
Default

What is the other device? Is it made for iPhone device?
verakot is offline   Reply With Quote
Reply

Bookmarks

Tags
bluetooth, gkpeer, gkpeerstateconnected, malloc

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 352
6 members and 346 guests
bignoggins, Chickenrig, givensur, linkmx, Objective Zero, PlutoPrime
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,657
Threads: 94,118
Posts: 402,894
Top Poster: BrianSlick (7,990)
Welcome to our newest member, jenniead38
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 12:43 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0