How are you determining which call fails?  Is there a back trace?

Your code compiles and runs fine here (10.6).

It will help if you provide some additional details, e.g. version, backtrace, some additional context around the failure.

On Sep 8, 2009, at 11:13 PM, Devraj Mukherjee wrote:

Hi all,

I have two arrays initalized as follows, the first works fine and I
can work with elements in the Array

NSArray *majorScaleQuestions = [[NSArray alloc] initWithObjects:@"1",
@"2", @"b3", @"3", @"4", @"5", @"b6", @"6", @"7", nil];

the second throws up an EXEC_BAD_ACCESS and the application obviously stops

NSArray *newToneNotes = [[NSArray alloc] initWithObjects:@"C", @"C#",
@"D", @"D#", @"E", @"F", @"F#", @"G", @"G#", @"A", @"A#", @"B", nil];

if the same array is initalized as

NSArray *newToneNotes = [[NSArray alloc] initWithObjects:@"C", @"C#",
@"D", nil];

the applications starts up, but if I add @"D#" and initalize it as follows

NSArray *newToneNotes = [[NSArray alloc] initWithObjects:@"C", @"C#",
@"D", @"D#", nil];

it fails. Can anyone see what I might be doing wrong?

Thanks.

--
"The secret impresses no-one, the trick you use it for is everything"
- Alfred Borden (The Prestiege)
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/jeff.schilling%40gmail.com

This email sent to jeff.schill...@gmail.com

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to