• 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
Re: Crash in [NSApplication sendAction:to:from:]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Crash in [NSApplication sendAction:to:from:]


  • Subject: Re: Crash in [NSApplication sendAction:to:from:]
  • From: Michael Babin <email@hidden>
  • Date: Sat, 22 Jul 2006 13:37:16 -0500

On Jul 21, 2006, at 6:44 PM, Trygve Inda wrote:

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"];
    }
}

Since the unload: method does not appear on the stack, it would seem that the crash is occurring before this code is executed. What object is the button action message sent to? Is it possible this object is invalid/released?


--
Michael Babin email@hidden
Order N Development, LLC http://www.orderndev.com/
Goldfish Aquarium for Mac: http://www.lifeglobe.com/product/ index.php?pltid=2&ref=OrderNDev


_______________________________________________
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


References: 
 >Crash in [NSApplication sendAction:to:from:] (From: Trygve Inda <email@hidden>)

  • Prev by Date: Editing the HUD window text edit question
  • Next by Date: Re: How to track down this memory problem?
  • Previous by thread: Re: Crash in [NSApplication sendAction:to:from:]
  • Next by thread: NSPopupButton menu and bindings
  • Index(es):
    • Date
    • Thread