• 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
toolbars and nib loading crash
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

toolbars and nib loading crash


  • Subject: toolbars and nib loading crash
  • From: Chris Saldanha <email@hidden>
  • Date: Wed, 21 May 2003 16:37:22 -0500
  • Organization: Parliant Corporation

[demime could not interpret encoding binary - treating as plain text]
Hi,

I've got an app that works on 10.2. When I run it on 10.1.5 it crashes
when I try to load a nib from the action method associated with a toolbar item.

The other toolbar items can be clicked, and their action methods work
just fine. The only one that crashes is the item that causes a nib to be
loaded.

I have verified with printf-debugging that it has completed running my
action method (and the nib's window has been displayed on screen), then
the app dies on a SIGBUS.

The backtrace from gdb is below. Anyone see something like this?

If I move the nib-loading code into the controller's
applicationDidFinishLaunching method, then that toolbar item no longer
crashes (the method simply brings the window up) - it only happens when I
cause a nib to load...

Program received signal EXC_BAD_ACCESS, Could not access memory.
0x706bab64 in objc_msgSend ()
(gdb) bt
#0 0x706bab64 in objc_msgSend ()
#1 0x70ebcff0 in -[NSToolbarItemViewer mouseDown:] ()
#2 0x70c1b8f8 in -[NSWindow sendEvent:] ()
#3 0x70b9479c in -[NSApplication sendEvent:] ()
#4 0x70c23488 in -[NSApplication run] ()
#5 0x70c91ed0 in NSApplicationMain ()
#6 0x000029bc in main (argc=1, argv=0xbffffa84) at main.m:13
#7 0x00002740 in _start (argc=1, argv=0xbffffa84, envp=0xbffffa8c) at
/SourceCache/Csu/Csu-45/crt.c:267
#8 0x000025c0 in start ()


Cheers,
Chris
--
Chris Saldanha
Parliant Corporation
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: Sound & Cocoa
  • Next by Date: Re: Speed Traps
  • Previous by thread: Re: Sound & Cocoa
  • Next by thread: Help needed
  • Index(es):
    • Date
    • Thread