Re: Endless loop but only with release build
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