RE: SIGBUS
RE: SIGBUS
- Subject: RE: SIGBUS
- From: email@hidden
- Date: Sun, 3 Jun 2001 12:22:47 -0400
int itemCount; could go after the line: NSMutableAray *myArray;
itemCount = [myArray count]; could go after the line: NSLog(@"Array ...
then to display itemCount, simply use NSLog with the proper escape character
for ints (either i or d). Of course, this new statement should go before
the line: "[myArray release]" otherwise you'll have released the reference
already.
Juan
-- Original Message --
>
Me again: I'm trying to "play" with the Hello World stuff in the
>
so-called "Learning Cocoa" book by adding several lines of code as
>
suggested on page 60. However, the book does not say where the bloody
>
code is supposed to go. I got the first one figured out, but in trying
>
to get an itemCount to work I run into this:
>
>
Hello has exited due to signal 10 (SIGBUS).
>
>
And just where does this code go?
>
>
int itemCount;
>
itemCount = [myArray count];
>
>
"Help" is no help. Help! Please.
>
>
Brian E. Howard
>
Cocoa Cult Central
>
_______________________________________________
>
cocoa-dev mailing list
>
email@hidden
>
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
References: | |
| >SIGBUS (From: Brian Howard <email@hidden>) |