Re: Random crash in -[NSView displayIfNeeded]
Re: Random crash in -[NSView displayIfNeeded]
- Subject: Re: Random crash in -[NSView displayIfNeeded]
- From: Florent Pillet <email@hidden>
- Date: Tue, 19 Oct 2004 10:29:20 +0200
More information about this. My code hides & shows a progress bar in
the main window by adding or removing it to/from a view in the window.
Since it can happen that insertion/removal happen several times a
second, I suspect that at some point Cocoa gets 'lost' in thinking that
an object that has been removed is still there. But that's still
strange since my progress bar is retained by my code, so the object ptr
is still valid.
Anyway, I'll try using a slower timer to hide/show the progress bar and
see how that goes. I'm still taking hints at what could be the actual
cause of the crash ;-)
Florent
On 18 oct. 04, at 22:31, Florent Pillet wrote:
I have several threads performing intensive work and sending out
notifications. These notifications are catched by code which [self
performSelectorOnMainThread] to call a method which will update a
progress bar and a NSTextField. Also, I have a sheet other the current
window which has another progress bar and another NSTextField which
are updated the same way.
Sometimes, more or less randomly, the main thread crashes (as in the
report below). It seems that it has something to do with the number of
updates triggered each second, but I'm not sure. Any hint at why Cocoa
would be crashing there?
I have a hard time retrieving the last valid object, so any help would
be appreciated...
Here is the stack trace for the main thread (which is the one
crashing):
--
Florent Pillet, Code Segment email@hidden
Developer tools and end-user products for Palm OS & Mac OS X
ICQ: 117292463
http://www.florentpillet.com
_______________________________________________
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