Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Mockup & CodeGen, iPhone & iPad
($9.99)

Make your own iPhone apps
and run them live!
(free)

Manu
($0.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

View Single Post
Old 01-31-2010, 12:27 AM   #1 (permalink)
rjakecastro
Registered Member
 
Join Date: Jan 2010
Posts: 12
Default hard time debugging an NSString concatenation

if([self checkIfInsideBoard_X:touchLocation.x checkIfInsideBoard_Y:touchLocation.y] == YES) {
//check if there are any highlighted cell in the board, if no sets it to yes to highlight a cell

//get source
if (isActiveCell == NO) {
isActiveCell = YES;
[self getCellFromCoordsX:touchLocation.x coordsY:touchLocation.y];

//save source to sMove string
moveString = [[[NSString stringWithFormat: @"%d", [self getRow:touchLocation.y]] stringByAppendingString:[NSString stringWithFormat: @"%d", [self getColumn:touchLocation.x]]] stringByAppendingString: sBoard[ [self getRow:touchLocation.y] ] [ [self getColumn:touchLocation.x] ] ];
NSLog(@"move string : %@", moveString);

// NSLog(@"filename: %@", [self getPieceFileName:@"A"]);
}

//get destination
else {
isActiveCell = NO;

moveString2 = [NSString stringWithFormat:@"%@_%@", moveString, @"i'm concatenating this string to moveString"];
}



}


i have this code above, and keep getting an error like this: Program received signal: “EXC_BAD_ACCESS”.
warning: Couldn't find minimal bounds for "_sigtramp" - backtraces may be unreliable

i get this error on this line of code: moveString2 = [NSString stringWithFormat:@"%@_%@", moveString, @"i'm concatenating this string to moveString"];
}

it's a simple concatenation of string but i really don't understand why i'm getting this error. can somebody please help me.. thnx in advance.. any help will be appreciated.
rjakecastro is offline   Reply With Quote
 

» Advertisements
» Stats
Members: 158,862
Threads: 89,223
Posts: 380,683
Top Poster: BrianSlick (7,129)
Welcome to our newest member, higgey
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 05:31 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.