Re: Over-released Paragraph Style - Driving Me NUTS!
Re: Over-released Paragraph Style - Driving Me NUTS!
- Subject: Re: Over-released Paragraph Style - Driving Me NUTS!
- From: Murat Konar <email@hidden>
- Date: Mon, 23 Oct 2006 19:17:11 -0700
On Oct 23, 2006, at 6:58 PM, Seth Willits wrote:
On Oct 23, 2006, at 6:22 PM, Cameron Hayne wrote:
On 23-Oct-06, at 8:44 PM, Seth Willits wrote:
Though I already know what object it is and where it's allocated.
I just need to find out where it's being released. I can't
however just put a breakpoint in its release method because it
gets sent retain and release hundreds of thousands of times in
the case where I can reproduce the bug, so it'd take forever to
step through it.
This app wouldn't happen to be multi-threaded would it? I ask that
since it sounds like the problem is hard to reproduce - like a
typical race condition.
It's not hard to reproduce. I have a 100% repeatable test case.
But I think Cameron is on to something: is your app multi-threaded?
I've been puzzling over your problem too and have been wondering if
your problem is related to threads or perhaps even multiple run loops.
This sounds an awful lot like an autorelease pool is getting released
and your paragraph style with it. The question is when the
autorelease pool in question is getting released. Normally, you have
the autorelease pool that gets released after every run loop
iteration, and if you're in a multithreaded situation, your threads
may also have autorelease pools associated with them. You need to
make sure your object is getting added to the proper autorelease pool
or it can easily get released out from under you.
_murat
_______________________________________________
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