Re: IllegalStateException: "...EOEditingContext has already been disposed"
Re: IllegalStateException: "...EOEditingContext has already been disposed"
- Subject: Re: IllegalStateException: "...EOEditingContext has already been disposed"
- From: Paul Hoadley <email@hidden>
- Date: Sat, 01 Oct 2016 11:15:57 +0930
Hi Philippe,On 29 Sep 2016, at 11:02 PM, Philippe Rabier < email@hidden> wrote:
When should you normally explicitly dispose() an EC? That’s really not something I do very much of at all.
Hi Paul,
It helps to free up memory sooner than waiting for GC. I used it in the RR loop or when you have a big number to objects to manipulate (export job or whatever) if you can’t do raw sql. Rather than having a single ec, you can can dispose and create a new one every batch of x EOS.
I’ve certainly used dispose() in that kind of scenario, I just haven’t been in the habit of explicitly disposing them when, say, they’re just serving a brief purpose on a single page.
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden