Re: Crash in [NSApplication sendAction:to:from:]
Re: Crash in [NSApplication sendAction:to:from:]
- Subject: Re: Crash in [NSApplication sendAction:to:from:]
- From: Trygve Inda <email@hidden>
- Date: Fri, 21 Jul 2006 23:48:51 +0000
- Thread-topic: Crash in [NSApplication sendAction:to:from:]
> 0 libobjc.A.dylib 0x90a4e387 objc_msgSend + 23
> 1 com.apple.AppKit 0x934881ac -[NSApplication sendAction:to:from:] + 107
> 2 com.apple.AppKit 0x93535eff -[NSMenu performActionForItemAtIndex:] + 455
> 3 com.apple.AppKit 0x93535c41 -[NSCarbonMenuImpl
> performActionWithHighlightingForItemAtIndex:] + 103
> 4 com.apple.AppKit 0x93535898 -[NSMenu performKeyEquivalent:] + 766
> 5 com.apple.AppKit 0x93535339 -[NSApplication _handleKeyEquivalent:] + 381
> 6 com.apple.AppKit 0x93469267 -[NSApplication sendEvent:] + 3542
> 7 com.apple.AppKit 0x93394426 -[NSApplication run] + 547
>
> This happens about 20% of the time when clicking a button (our using the
> equivalent menu item) with an action of:
>
> - (IBAction)unload:(id)sender
> {
> if (movie != nil)
> {
> if ([movie rate] != 0)
> [movie stop];
>
> if (movieIdle != nil)
> {
> [movieIdle invalidate];
> [movieIdle release];
> }
>
> [movie release];
> [self setValue:nil forKey:@"movie"];
> }
> }
PS:
I left out a line (it is there in the real code):
if (movieIdle != nil)
{
[movieIdle invalidate];
[movieIdle release];
movieIdle = nil;
}
_______________________________________________
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