Crash in _blinkCaretTimerAction (NSTextView)
Crash in _blinkCaretTimerAction (NSTextView)
- Subject: Crash in _blinkCaretTimerAction (NSTextView)
- From: Martin Wierschin <email@hidden>
- Date: Thu, 5 Jan 2006 22:57:23 -0800
Hello cocoa list,
I've been seeing crashes in the function _blinkCaretTimerAction. It
happens somewhat randomly, but using NSZombieEnabled and friends I've
figured out that it is trying to access a deallocated NSTextView,
which was displayed in a document that had just been closed. From the
stack (included below) I can see that this function is a timer
callback. I assume the timer was supposed to be invalidated when the
NSTextView was deallocated, but this isn't happening for some reason.
Has anyone seen this crash, or do you have any information on how
the invalidation is supposed to happen? Eg: who is responsible for
invalidating this timer? Thanks in advance for any help,
~Martin
Here is the stack trace:
#0 objc_msgSend_rtp
#1 _blinkCaretTimerAction
#2 __CFRunLoopDoTimer
#3 __CFRunLoopRun
#4 CFRunLoopRunSpecific
#5 RunCurrentEventLoopInMode
#6 ReceiveNextEventCommon
#7 BlockUntilNextEventMatchingListInMode
#8 _DPSNextEvent
#9 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:]
#10 -[NSApplication run]
#11 NSApplicationMain
_______________________________________________
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