• 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: Endless loop but only with release build
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Endless loop but only with release build


  • Subject: Re: Endless loop but only with release build
  • From: Mike Abdullah <email@hidden>
  • Date: Mon, 2 Oct 2006 22:21:56 +0100

Well in any case, your secondary thread should really be retaining the data it is working, just as good practice anyway :)

Mike.

On 2 Oct 2006, at 11:20, Antonio Nunes wrote:

On 1 Oct 2006, at 14:23, Mike Abdullah wrote:

Maybe I don't fully understand your situation here, but couldn't you have something like:

- The secondary thread retains all the data it needs for its operations
- When asked to close, the main thread sets the flag telling the other thread to stop
- The main thread then closes the document as usual

Hm, that is how (I thought) I did it originally. Then I discovered there was a snag because of how objects interrelate and what gets deallocated when, but my solution may have been overly complicated. I might indeed just need to retain one extra object at each iteration through the loop. Thanks. I'll give that a go.


António

-----------------------------------------------------------
And you would accept the seasons of your
heart, even as you have always accepted
the seasons that pass over your field.

--Kahlil Gibran
-----------------------------------------------------------




_______________________________________________ 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
References: 
 >Re: Endless loop but only with release build (From: Antonio Nunes <email@hidden>)
 >Re: Endless loop but only with release build (From: Mike Abdullah <email@hidden>)

  • Prev by Date: Re: Change titlecolor from NSWindow
  • Next by Date: Re: Bring Window to Front
  • Previous by thread: Re: Endless loop but only with release build
  • Next by thread: Re: Re: Weird drawing trouble, please help me
  • Index(es):
    • Date
    • Thread