Re: coredata framework daemon-safe?
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