exc-bad-access

EXC_BAD_ACCESS on UITableView reloadData call

Hi all, I've come to the point of pulling my hair out over this one. I keep getting a EXC_BAD_ACCESS when I call the reloadData for the UITableView. I'll lay the groundwork for you here. MainViewController.h #import <UIKit/UIKit.h> #import <Foundation/Foundation.h> @class iPROSAppDelegate; @interface MainViewController : UIViewCon...

Twitter+OAuth Crash on iPhone OS 2.x

I'm using Ben Gottlieb's Twitter+OAuth code. Works great on my 3.1.2 iPhone, but crashes on my 2.2.1 iPhone. I'm getting a EXC_BAD_ACCESS error in the EstimateBas64EncodedDataSize call. Here's what I'm seeing in the debugger: #0 0x2fe1e724 in __dyld_pthread_getspecific #1 0x2fe1eddc in __dyld___gthread_getspecific #2 0x2fe1eec8 in _...

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 to ensure that newly-visible UIImageViews have a freshly loaded UIImage assigned to them. The loading happens on a background thread. Everything works almost fine, except there is a stutter as each image becomes ...

iphone crashes on the first time installed

hello guys, my app crashes with EXC BAD ACCESS i've added NSZombieEnabled = YES to the arguments of my executable. it gives me that log: [CFArray release]: message sent to deallocated instance 0x3c26340 and crashes that happens only on the first time the app is installed on the simulator.. i press Build and Go again the app works as i...

EXC_BAD_ACCESS in tableview application

This is my first iPhone application and it's based on a top-level tableview. Selections of rows either go to another tableview or to a view. The application runs OK on the simulator but when ported to my iPhone it fails with a EXC_BAD_ACCESS error. This happens while my splash screen is being displayed. NSLog indicates that the program p...

EXC_BAD_ACCESS on very simple Objective-C program (Snow Leopard)

I'm following through one of the very early examples in Learning Objective-C on the Mac. My code is almost exactly the same as the code in the book (a couple spaces and trivial parentheses may differ). It looks like this: #import <Foundation/Foundation.h> BOOL areIntsDifferent (int thing1, int thing2) { if (thing1 == thing2) { ...

EXC_BAD_ACCESS at detail view ?

Hi all while doing adhoc testing tester got the crash with the crash report : Exception Type: EXC_BAD_ACCESS (SIGSEGV) Exception Codes: KERN_PROTECTION_FAILURE at 0x2ff00ff4 the appllication never crashes in simulator but certainly crashes in the device . when I testes it with Object alloc I got some strange allocation like in the ...

Inexplicable EXC_BAD_ACCESS in the iPhone simulator

I'm trying to build a class for handling all sqlite3 work and I've encountered an EXC_BAD_ACCESS which I just can't explain. I am new to Objective-C development and memory management in general so I apologize if this is a stupid question. When initializing the class I get the path to the database file and keep it around: NSArray * docu...

Help debugging iPhone app - EXC_BAD_ACCESS

Hi, I've developed my application using my 3G device to test with. Upon giving this to a friend to test, he's noticed that it crashes..I've had a look at the crash log, but it's not much use except for the "EXC_BAD_ACCESS" statement after a few memory warnings. On my device, I can use the imagePicker lots, and each time a photo is take...

bus error in simple Mac OSX C program

I am writing a simple C program to create a twelve tone matrix. The code compiles, but I get run time error 'Bus Error'. In the debugger it says EXC_BAD_ACCESS. int main () { int j,k,l; int twelve[13][13]; void mat(int twelve[13][13]); printf("input original tone row \n"); for(j=0;j<=11;j++) { scanf("%2i...

EXC_BAD_ACCESS with IBACTION

Hello. I have read a lot about this issue but mine still seems to be different somehow. So from what I understood, EXC_BAD_ACCESS occurs with memory management problems. The thing is, mine does not seem (! :)) to be there. The thing is, I simple added a button in IB, rounded rect, no image. The I hooked it up with an IBACTION I defined...

NSURLConnection sendSynchronousRequest: fails when using POST

I'm using a custom NSURLCache to intercept calls for certain web pages in order to modify them dynamically. Inside cachedResponseForRequest: I modify the request, then send it out using sendSynchronousRequest. This works very well until you attempt to submit a form. If there is post data it fails. If i remove the HTTPBody and set the re...

EXC_BAD_ACCESS in SQLite on Mac OS

I'm pulling and pushing data from an sqlite database. I use the FMDatabase cocoa wrapper. I'm pulling and pushing data from multiple threads, but I made sure that more then one transactions never happen at the same time. I get EXC_BAD_ACCESS after a few hundred call at the database but never at the same time. It's also not memory rela...

Loading images into NSArray using initWithObjects crashes but not with an NSMutableArray?

I'm doing some lazy loading of images into an array when the app has loaded. I have tried using an NSMutableArray and an NSArray (I don't need to alter the array once it's been created) but the latter crashes on me. ... [self performSelectorInBackground:@selector(loadImageArrays) withObject:nil]; ... - (void)loadImageArrays { NSAu...

EXC_BAD_ACCESS upon simple iPhone app startup

Background: I'm trying out the "HelloPoly" assignment in the CS193P course. I've created my .xib file, and a custom Controller class. I haven't fleshed out any methods - I've only allowed IB to write the class files into xcode. Problem: Every single time I startup the application, it bombs out. When I run gdb I see it's an EXC_BAD_A...

UIImageWriteToSavedPhotosAlbum pictures crash my app when I upload to server

The app that I am creating uploads images in four(the fourth is a test function) ways; 1.Directly from UIImagePickerController with UIImagePickerControllerSourceTypeCamera like this: //didFinishPickingImage method if ([picker sourceType] == UIImagePickerControllerSourceTypeCamera) { UIImageWriteToSavedPhotosAlbum(img, nil, nil, nil); }...

NSMutableDictionary removeObjectForKey throwing EXC_BAD_ACCESS for a var that isn't released...

I have a plist. It has several dozen keys, each with NSMutableArray items: ... <key>KeyName1</key> <array> <string>String1</string> <string>String2</string> <string>String3</string> </array> <key>KeyName2</key> <array> <string>String1</string> <string>String2</string> <string>String3</string> </array> ... I ha...

kABPersonFirstNameProperty... trowing EXC_BAD_ACCESS

Im reading the address book contacts... everything goes well until I test a contact with no First Name ( Since I can create a contact with just an email or a phone or wathever....). The code (reduced) is this: - (NSMutableArray *) getContactsInfo { NSMutableArray *contactsList = [[NSMutableArray alloc] init]; localAddressBook =...

[objective-c] why shouldn't I release this string?

Look at the following method: -(void)updateProfile:(Profile *)profile WithJSON:(NSString *)JSON; { SBJSON *parser = [[SBJSON alloc] init]; NSDictionary *object = [parser objectWithString:JSON error:nil]; NSNumberFormatter *nf = [[NSNumberFormatter alloc] init]; [nf setPositiveFormat:@"#,##0"]; profile.displayName =...

Loading presentModalViewController in ViewDidAppear causes EXC_BAD_ACCESS

In the Follwoing ViewControllerClass I get EXC_BAD_ACCESS when trying to call presentModalViewController in ViewDidAppear method. #import "SounderViewController.h" #import "ASIFormDataRequest.h" #import "ASIHTTPRequest.h" #import "JSON.h" #import "InfoViewController.h" @implementation SounderViewController @synthesize ipod; @synthes...