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

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

Hi,
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

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

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
-fobjc-arc is not supported error and duplicate symbol error in compiling mehdies Mac Programming 3 Sep 24, 2013 01:57 AM
Double clocks, double unlock slider after ios7 upgrade MobsterMac iPhone 0 Sep 22, 2013 02:03 PM
Highly Rated iOS Arcade Space Shooter 'Arc Squadron' is Free for Limited Time MacRumors iOS Blog Discussion 18 Dec 20, 2012 05:00 AM
FREE!! CalculatorZ The Best Double Calculators in 1 app SuperNU iPhone and iPod touch Apps 7 Oct 12, 2012 06:12 AM

Forum Jump

All times are GMT -5. The time now is 08:42 AM.

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

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