Top "Exc-bad-access" questions

EXC_BAD_ACCESS is a fatal error related to memory management on macOS and iOS.

Adding a delegate to a custom UITableViewCell (bad access error)

I'm trying to add a custom delegate to a custom UITableViewCell of mine. On this cell I have a button …

objective-c uitableview delegates exc-bad-access
Iphone Core Data crashing on Save

I'm currently writing an Iphone application using Core Data and I get a EXC_BAD_ACCESS error during the [managedObjectContext …

iphone core-data exc-bad-access
Is there a way to catch or handle EXC_BAD_ACCESS?

As far as I understand, EXC_BAD_ACCESS happens when you try to access bad memory (feel free to correct …

iphone ios objective-c exc-bad-access
Core Data: solve a strange EXC_BAD_ACCESS error

I am facing a really strange problem with Core Data. Let's describe it: Definitions Let's say I have two models, …

objective-c core-data exception-handling exc-bad-access
How to find root cause Crashed: com.apple.main-thread in production app?

i have such a report from Crashlytics: Thread : Crashed: com.apple.main-thread 0 libobjc.A.dylib 0x000000019503fbd0 objc_msgSend + 16 1 CoreFoundation 0…

ios exc-bad-access
Objective C: How to convert CGImageRef to UIImageView?

I'm using the XZINGObjC framework to create an EAN-Barcode-Image. Following the documentation, I'm doing it like //in viewDidAppear //XZING: create …

objective-c uiimage exc-bad-access cgimageref
Avoiding EXC_BAD_ACCESS when using the delegate pattern

A have a view controller, and it creates a "downloader" object, which has a reference to the view controller (as …

iphone objective-c memory-management exc-bad-access
How to diagnose a KERN_PROTECTION_FAILURE

I am getting an interesting crash that I can never seem to replicate on the simulator: Exception Type: EXC_BAD_…

iphone objective-c cocoa cocoa-touch exc-bad-access
EXC_BAD_ACCESS with IBACTION

I have read a lot about this issue but mine still seems to be different somehow. So from what I …

iphone uibutton exc-bad-access
CGImage/UIImage lazily loading on UI thread causes stutter

My program displays a horizontal scrolling surface tiled with UIImageViews from left to right. Code runs on the UI thread …

iphone uiimage lazy-loading exc-bad-access cgimage