On 28/06/2009, at 9:19 PM, Gennady Kushnir wrote:

Should I also lock editing context if I do not make any changes in it,
just reading?

Yes.

Think about it: readers need to lock just like writers lock otherwise readers would never be isolated from writers. Also you're ec will access the same db via the same db context at some point...

Anyway - the rules of engagement with ecs is you must lock/unlock. No exceptions. You can, however, make this easier by using Wonder which can lock/unlock automatically for you for request/response loops etc

2009/6/28 Dov Rosenberg <[email protected]>:
If you use an editingcontext in a thread you should manually lock/ unlock it,
otherwise you can see these kinds of errors.

Dov


On 6/27/09 7:02 AM, "Gennady Kushnir" <[email protected]> wrote:

Hello list.
My applications console log displays this error (multiple times) when
performing a scheduled task (not in RR loop)
[2009-6-27 14:53:30 MSD] <Finalizer> Exception occurred while
finalizing EOEditingContext #13941350 :null

In fact everything works fine, but I think this error should be dealt
with though
What does this mean and how can I get additional details for debugging
this problem - this console message is the only output I get on
this...
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/drosenberg%40inquira.com

This email sent to [email protected]


_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/lachlan.deck%40gmail.com

This email sent to [email protected]

with regards,
--

Lachlan Deck



_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to