Re: SIGBUS and NSLog
Re: SIGBUS and NSLog
- Subject: Re: SIGBUS and NSLog
- From: Jeff Galyan <email@hidden>
- Date: Sun, 20 Jan 2002 18:09:10 -0700
Because %@ causes printing of an object. You didn't pass anything to
NSLog(...) to accommodate the conversion specifier. %@ has to have an object
pointer (it dereferences objects or gets their address in memory at run time
depending on the object...). No pointer means garbage address means bus
error.
It's not Project Builder that generated the error - it happened at runtime.
--Jeff
On 1/20/02 4:30 PM, "Riccardo Santato" <email@hidden> wrote:
>
Hi everybody,
>
>
do you remember my SIGBUS question ? Well, I've found the answer. That
>
error was not due to a failed initialization but simply for this:
>
>
NSLog(@" %@ has arrived",user);
>
>
In my source I forgot to put ",user" !! Why PB returns such a absurd
>
error then ?!? Anyone knows why ?!?