Strange crash, CFBundle*
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!