• 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: coredata framework daemon-safe?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: coredata framework daemon-safe?


  • Subject: Re: coredata framework daemon-safe?
  • From: "P Smith" <email@hidden>
  • Date: Wed, 17 May 2006 14:17:51 +0530

This is what the crash log says:

0   com.apple.Foundation 	0x9294d120 _NSRaiseError + 264
1   com.apple.CoreData   	0x940d8f34 -[NSManagedObjectContext save:] + 1380

Multiple threads might be using the class I have implemented. Each
time I need to add the entry to the database, I create instance of
NSManagedObjectContext and release it after the operation is
completed. Performance is not an issue since  don't expect to write to
the database very often. Am I doing something completely wrong? I
don't have the control over the number of threads being created. How
can I handle the above situation in my class better?

Thanks,
PS

On 5/17/06, mmalcolm crawford <email@hidden> wrote:

On May 17, 2006, at 12:51 AM, P Smith wrote:

> While saving to a file for the first time, my daemon crashes at
> [ moc save]
>
What does the crash log say?

>  [ myEntity setName : [NSString stringWithCString: fileName]];
>
Note that stringWithCString is deprecated.

mmalc

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >coredata framework daemon-safe? (From: "P Smith" <email@hidden>)
 >Re: coredata framework daemon-safe? (From: Bill Bumgarner <email@hidden>)
 >Re: coredata framework daemon-safe? (From: "P Smith" <email@hidden>)
 >Re: coredata framework daemon-safe? (From: mmalcolm crawford <email@hidden>)

  • Prev by Date: Re: Using SenTestingKit for testing a framework
  • Next by Date: Re: coredata framework daemon-safe?
  • Previous by thread: Re: coredata framework daemon-safe?
  • Next by thread: Re: coredata framework daemon-safe?
  • Index(es):
    • Date
    • Thread