Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Thread Tools Search this Thread Display Modes
Old Dec 2, 2012, 08:54 PM   #1
macrumors newbie
Join Date: Nov 2012
Double Free error with ARC

In my application, i'm using a view(say X), that has a webview, along with few other controls. On click of a button, i'm creating a tabview item & setting its view property to X.
On clicking "Cancel" button, i'm removing this tabview item.

Application is crashing when these steps are done -
1. Press button(displays tabview item)
2. Click cancel(removes tabview item)
3. Press the button pressed in step 1 again.

There is an issue with the webview. Say on step 1, the webview object was WebView: 0x10564bc00. When i press the same button again(step 3), i'm getting this message in console -
malloc: *** error for object 0x10564bc00: pointer being freed was not allocated
*** set a breakpoint in malloc_error_break to debug

However now the webview object is changed to some 'xyz' value.
Any suggestion on how to fix this?
I'm using xcode 4.5 & ARC is enabled.
cocoaADay is offline   0 Reply With Quote

MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

Forum Jump

All times are GMT -5. The time now is 11:53 AM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013,, LLC