• 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: Trying to clear a dead-lock of some type
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Trying to clear a dead-lock of some type


  • Subject: Re: Trying to clear a dead-lock of some type
  • From: Sacha Mallais <email@hidden>
  • Date: Thu, 19 May 2005 13:34:36 -0700

On May 19, 2005, at 1:24 pm, WebObjects wrote:

I'm having trouble where the "ec.unlock()" in a "finally block" is outside
the scope of the method.


I'm not positive what you're asking, but:
<java101>
Your method should look something like this:

  EOEditingContext ec.lock();
  try {
    something;
  } catch (foo) {
    handle foo;
  } finally {
    ec.unlock();  // unlock in the finally clause
  }
</java101>


sacha


-- Sacha Michel Mallais - 800 lb. gorilla Global Village Consulting Inc.: http://www.global-village.net/ Bottom posting is your friend: http://www.river.com/users/share/etiquette/

_______________________________________________
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


References: 
 >Re: Trying to clear a dead-lock of some type (From: WebObjects <email@hidden>)

  • Prev by Date: Re: Trying to clear a dead-lock of some type
  • Next by Date: Re: (no subject)
  • Previous by thread: Re: Trying to clear a dead-lock of some type
  • Next by thread: Re: Trying to clear a dead-lock of some type
  • Index(es):
    • Date
    • Thread