SIGBUS when closing NSWindow
SIGBUS when closing NSWindow
- Subject: SIGBUS when closing NSWindow
- From: Herwig Henseler <email@hidden>
- Date: Tue, 22 Apr 2003 21:32:13 +0200
Greetings,
[MacOSX 10.2.5, Java]
In my program I want to display a JPEG-Image in a new window. This is
the only purpose of this window. My code:
public void showFilename( String filename ) {
NSImage i = new NSImage( filename, false );
NSImageView iv = new NSImageView();
iv.setImage( i );
NSWindow w = new NSWindow(
NSScreen.mainScreen().visibleFrame(),
NSWindow.TitledWindowMask |
NSWindow.ClosableWindowMask | NSWindow.MiniaturizableWindowMask |
NSWindow.ResizableWindowMask,
NSWindow.Buffered,
true
);
w.setTitle( filename );
w.setContentView( iv );
w.makeKeyAndOrderFront( this );
}
This works as expected. Except that after closing the window, I get a
signal 10 (SIGBUS). What did I miss?
Herwig
--
Dr. Herwig Henseler Tel.: 0 44 35 / 388 486
Freiberufl. Informatiker Fax.: 0 44 35 / 388 487
Lehms 9, 26197 Gro_enkneten Mobil: 0173 / 2 02 98 41
E-Mail: email@hidden Web:
http://www.herwig-henseler.de
"Life is a heuristic guided depth-first search without backtracking"
_______________________________________________
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.