Re: Window freezes app
Re: Window freezes app
- Subject: Re: Window freezes app
- From: Shawn Erickson <email@hidden>
- Date: Wed, 30 May 2007 07:46:58 -0700
On May 30, 2007, at 7:09 AM, Antonio Nunes wrote:
On 30 May 2007, at 10:39, Yann Bizeul wrote:
It looks like a deadlock problem, you know AppKit is not thread
safe and you have to be very carefull when updating AppKit items
in threads, which seem to be the case.
Try adding some locks to avoid this situation ?
Thanks Yann,
I know about issues with threads (I've been bitten by them before),
and I understand it's a deadlock problem, but these are threads
spawned by AppKit itself. And I am not updating anything at the
point where the freeze happens. I'm simply putting the window on-
screen. As I wrote, a similar deadlock problem appeared at the same
time with a panel that would freeze when putting it on-screen, but
I was able to fix it simply by recreating the panel from scratch in
Interface Builder. Yet, this simple solution doesn't seem to work
for the window at hand. It looks like it may be time to call in
Apple DTS. I'd rather have used my support incident for something
more exciting....
I think you have a 3rd thread involved in this issue that you didn't
list or possibly somehow you hit an exception that causes an
unrolling of things without correctly unlocking the view hierarchy
lock. Look for console error messages from your application and look
at other threads in your application.
-Shawn
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden