Fwd: closing panel from a thread
Fwd: closing panel from a thread
- Subject: Fwd: closing panel from a thread
- From: Mudi Dandan <email@hidden>
- Date: Mon, 20 Mar 2006 18:59:25 +0100
Begin forwarded message:
From: Mudi Dandan <email@hidden>
Date: March 20, 2006 1:31:20 PM GMT+01:00
To: j o a r <email@hidden>
Subject: Re: closing panel from a thread
Yes, you are right, it is 99,99% that when I press abort the
detached thread shuts down and releases the panel before the button
or key event handled by the main thread.
If I put some delay before the release of the panel, the problem
goes away (the event handler has time to finish).
Now the question is, how can synchronize the detached thread so
that it wont release the panel before the event handler?
On Mar 19, 2006, at 10:59 PM, j o a r wrote:
On 19 mar 2006, at 21.06, Mudi Dandan wrote:
I guess it happens when abort is pressed while the panel is being
closed from the detached thread.
I tried to close the panel with "performSelectorOnMainThread"
but did not help.
If I don't release the panel it does not crash, but that way I
leak memory.
Your crash looks like a memory management error - sending a
message to a deallocated object - rather than a threading error.
j o a r
_______________________________________________
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