• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: SIGBUS and NSLog
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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 ?!?


References: 
 >SIGBUS and NSLog (From: Riccardo Santato <email@hidden>)

  • Prev by Date: Re: Location of .jar files?
  • Next by Date: Re: long long int
  • Previous by thread: SIGBUS and NSLog
  • Next by thread: Re: SIGBUS and NSLog
  • Index(es):
    • Date
    • Thread