• 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
Fwd: closing panel from a thread
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Prev by Date: Getting crash reports
  • Next by Date: overriding NSGetCommand
  • Previous by thread: Re: closing panel from a thread
  • Next by thread: KVO: subclasses registering keys fror same dependent key
  • Index(es):
    • Date
    • Thread