Hi,
I got this iAd crash randomly in my app. What could I do to fix? I don't see any hints for me to fix it because on the simulator it never happens.
Incident Identifier: CA4CBEB9-A081-459B-BAAA-C7D58A0E0ABC
CrashReporter Key: e24b9614a897f92ee13ce00b76c71db307c61dcb
Hardware Model: iPod2,1
Process: FooApp [737]
Path: ...
I have a superweird problem:
I get a crash (EXC_BAD_ACCESS) when running my app with Release as active configuration on my 3.1.3 iPhone 3G. (works well in debug configuration or in simulator , works perfectly on device running iOS4).
My first guess was one setting in the Release configuration was erroneous/missing. In order to test it ...
I have a plist written from a NSMutableArray by [NSMutableArray writeToFile]. When trying to load that same plist with the following code:
NSArray *testArray = [NSArray arrayWithContentsOfFile:[self pathForDataFile:@"reportingSpeicher.plist"]];
NSLog(@"count = %@",[testArray count]);
I get bad access on the count or on any other opera...
Hi
Can anyone enlighten me as to why i'm getting an EXC_BAD_ACCESS on this chunk of code? I ran Instruments with Allocations and NSZombie enabled, and it said i messaged a zombie, but can't see whats up with it.
NSMutableArray *keys = [NSMutableArray arrayWithContentsOfFile:[[NSBundle mainBundle] pathForResource: @"keys" ofType:@"plist...
Now Im sure Im doing something extremely schoolboy here, but Im seriously hitting my head against a wall, for some reason Im getting EXEC_BAD_ACCESS when trying to set an NSNumber property on a custom class. Think Im having one of those days!
Here my test h and m files:
// Test.h
#import <Foundation/Foundation.h>
@interface Test : ...
Hi
I have two universal applications... one is giving me an EXC_BAD_ACCESS error when i do this in the app delegate:
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
// Override point for customization after application launch.
ScrollViewController *vc = [[ScrollViewCon...
Here goes a newbie question:
Create a new project in Xcode: File > New Project and select Navigation-based Application from iPhone OS templates.
Install json-framework as explained here.
Edit RootViewController.h's interface section into this:
@interface RootViewController : UITableViewController {
NSURLRequest *request;
NSURL...
Hi,
I'm using an array of ASIHTTPRequest wrappers (AsyncImageLoader) to download images for cells in a UITableView.
I'm having problems handling ASIHTTPRequests lifetime. If I release them, I end up having a EXC_BAD_ACCESS if I keep scrolling up and down while they try to load images.
Here's what my wrapper looks like. self.request ha...
I have an NSNumber being passed to be via a 3rd party API, and when I call intValue on the index I get a EXC_BAD_ACCESS error:
-(CPFill *) barFillForBarPlot:(CPBarPlot *)barPlot recordIndex:(NSNumber *)index;
{
NSLog(@"bar index %i", index);
int value = [index intValue];
}
The output I get in the debugger is:
bar index 0
ba...
Hi,
I'm new in iPhone developement and I have a EXC_BAD_ACCESS error.
In my .h I declare:
NSString *myString;
In my .m I have to methods:
. The (void)locationManager of CLLocationManager interface when I do it:
myString = [NSString stringWithFormat:@"%lf",loc.longitude];
NSLog(@"%@",myString); // it works
. A (void)sendPosition ...
I have a UIViewController that presents another UIViewController with a picker and returns four values. I also have a custom class called Chemical that can hold these values. In the delegate method that receives the values (the didSelectSource one in AdjustViewController) I put a breakpoint and I can see that the proper values come bac...
I have an NSTextField which is bound to an int in an object that I have included in my nib. When the object changes its int, the text field follows suit, and everything looks fine.
However, when I try to change it manually the program crashes as soon as I hit a key. It's not even getting into my setter methods, it just crashes with
Pr...
//adds a button to scroll list
-(void) addNode:(NSString *) atitle{
UIButton *btn = [UIButton buttonWithType:UIButtonTypeRoundedRect];
[btn setTitle:atitle forState:UIControlStateNormal];
[btn addTarget:self action:@selector(buttonTouched:) forControlEvents:UIControlEventTouchUpInside]; // handle touch
[bu...
Okay, I know there is another question about "exc_bad_access" here, but that seems to deal with Objective-C and iPhone dev., while mine is only regular C. I am new to C and am almost done with my first program until this error showed up. I have been trying to figure it out for a couple of days and am going insane. Any help is apprecia...
Hi everyone
This is really twisting my mind… I'm trying to access an NSMutableArray in an IBAction which I defined in viewDidLoad. Unfortunately I keep getting a EXC_BAD_ACCESS.
I'm new to all this so I'd really appreciate some insight in what I'm doing wrong.
Below find the corresponding code excerpts.
CounterViewController.h:
@in...
Hi all!
I made my own class derived by NSObject, and here is my code:
-(void) parseRow:(NSDictionary*) dictionary {
NSArray* arName = [[dictionary valueForKey:displayname] componentsSeparatedByString:@"+"];
[self setDriverName:[arName objectAtIndex:0]];
[self setDriverSurname:[arName objectAtIndex:1]];
[arName release]; ...
Hello,
Im sure this is something really simple I'm missing. I use makeKeyAndOrderFront: to open a window and it works the first time. When I close the window and try and open it again it quits and gives me the error EXC_BAD_ACCESS. My code is this:
- (IBAction)viewScreen:(id)sender {
[screenView makeKeyAndOrderFront:sender];
}
I can...
I am working on an app that tracks a users location. After about 20 minutes it seems that the app always crashes, and I am not sure why. Device logs show:
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x069f6000
Crashed Thread: 0
Thread 0 Crashed:
0 Ride 0x00012e00 -[...
I have two tableviews. One loads when I select one tab, and the other loads when I select the other tab.
I use MBProgressHUD to allow for quick switching between the tabs as I pull the tableview datasource from the web using Objective Resource and that can take a little bit. So I throw up a HUD progress indicator waiting for the data ...
Hi there,
I've got a UISearchBar on my UITableView and a method -finishSearching which looks like this:
- (void)finishSearching {
[overlayViewController.view removeFromSuperview];
if ([sb isFirstResponder])
[sb resignFirstResponder];
myTableView.scrollEnabled = YES;
}
This method gets called everytime I want to st...