• 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
Strange crash, CFBundle*
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Strange crash, CFBundle*


  • Subject: Strange crash, CFBundle*
  • From: Jens Bauer <email@hidden>
  • Date: Fri, 7 Dec 2001 18:59:52 +0100

Hi all,

I'm having a strange crash (periodically), in the following code:


static bool myFunction()
{
CFBundleRef bundle;
CFURLRef resources;

bundle = CFBundleGetMainBundle();

if(!bundle)
{
return(FALSE);
}
/* we get here */
resources = CFBundleCopyResourcesDirectoryURL(bundle); /* This
crashes sometimes */
/* we don't get here, due to signal 10 (SIGBUS) terminates the
application */
...
...
}


What could go wrong here ?

I would like to mention that this function is called 3 times with
success, but the 4th time, it crashes.


Love,
Jens

--
Just in case you like Opera... We'll make it even better!


  • Follow-Ups:
    • Re: Strange crash, CFBundle*
      • From: Douglas Davidson <email@hidden>
  • Prev by Date: OT: no more breakpoints in PB-gdb
  • Next by Date: Re: monitoring file modifications
  • Previous by thread: OT: no more breakpoints in PB-gdb
  • Next by thread: Re: Strange crash, CFBundle*
  • Index(es):
    • Date
    • Thread