• 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
Editing Contexts and Autorelease Pools in 4.5.1
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Editing Contexts and Autorelease Pools in 4.5.1


  • Subject: Editing Contexts and Autorelease Pools in 4.5.1
  • From: Dana Kashubeck <email@hidden>
  • Date: Wed, 07 Nov 2007 12:29:09 -0500
  • Organization: Riemer Reporting Service, Inc.

Remember waaaaay back when WebObjects supported Objective-C /and/ Java? Well, travel back with me if you are able.

I'm working with an Objective-C port of the MultiECLockManager. I ran into a really nasty situation because when you lock an editing context, it creates an autorelease pool that is subsequently released on unlock. Since autorelease pools work in stacks and I was locking/unlocking an array of editing contexts, pools were being released before I wanted them to. I did end up solving this issue by going /backwards/ through the array of editing contexts when unlocking.

However, I'm wondering if there is a way to avoid this situation altogether. It is a long-shot that anyone here will be able to help (as you've all been writing Java apps for so long!), but I thought it couldn't hurt to ask:

Does anyone have experience working with peer editing contexts in Objective-C WO?

--
-------------------------------------
Dana Kashubeck
Systems Manager
Riemer Reporting Service Inc.
http://www.riemer.com

Phone: 440-835-2477 x. 125
Fax:   440-835-4594
-------------------------------------

begin:vcard
fn:Dana Kashubeck
n:Kashubeck;Dana
org:Riemer Reporting Service, Inc.;MIS
adr:Suite 100;;24600 Detroit Road;Westlake;Ohio;44135;United States of America
email;internet:email@hidden
title:Systems Manager
tel;work:440-835-2477 ext. 125
tel;fax:440-835-4594
x-mozilla-html:FALSE
url:http://www.riemer.com
version:2.1
end:vcard

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

 _______________________________________________
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

  • Follow-Ups:
    • Re: Editing Contexts and Autorelease Pools in 4.5.1
      • From: Patrick Middleton <email@hidden>
    • Re: Editing Contexts and Autorelease Pools in 4.5.1
      • From: Chuck Hill <email@hidden>
  • Prev by Date: D2W - list - Display dynamic number of columns?
  • Next by Date: Re: WO5.4 and Java Client
  • Previous by thread: D2W - list - Display dynamic number of columns?
  • Next by thread: Re: Editing Contexts and Autorelease Pools in 4.5.1
  • Index(es):
    • Date
    • Thread