From: Sam R. <sro...@un...> - 2003-05-30 22:42:08
|
No ideas why this breaks, but its reproducable. Can you create a text view like this in obj-c? osx/cocoa allows you to do things that are wrong, and if that means the underlying NS objects die... gdb --args ruby -r osx/cocoa -e "p OSX::NSTextView.alloc" Program received signal EXC_BAD_ACCESS, Could not access memory. 0x930e98dc in -[NSTextView release] () (gdb) bt #0 0x930e98dc in -[NSTextView release] () #1 0x9068c258 in objc_msgSendv () #2 0x907ed17c in -[NSInvocation invoke] () #3 0x00243398 in init_cls_ObjcPtr () #4 0x00243630 in init_cls_ObjcPtr () #5 0x0024374c in init_cls_ObjcPtr () #6 0x0000df80 in rb_stack_check () #7 0x0000e8d0 in rb_stack_check () #8 0x000088b0 in rb_alias () #9 0x00006fd8 in rb_alias () #10 0x0000e430 in rb_stack_check () #11 0x0000e8d0 in rb_stack_check () #12 0x0000d570 in rb_with_disable_interrupt () #13 0x0000e8a8 in rb_stack_check () #14 0x000088b0 in rb_alias () #15 0x00008650 in rb_alias () #16 0x00004968 in ruby_run () #17 0x000029fc in main () #18 0x00002778 in start () #19 0x000025f8 in start () (gdb) sta...@ma..., on Fri, May 30, 2003 at 03:45:20AM -0500: > Hello all, > > Whenever I try to do the following code in irb or in my program... I get the > Bus Error.... > > require 'cocoa/osx' > tv = OSX::NSTextView.alloc > > > Irb output: > irb(main):004:0> tv = OSX::NSTextView.alloc > /Library/Frameworks/RubyCocoa.framework/Versions/A/Resources/ruby/osx/objc/o > c_wrapper.rb:18: [BUG] Bus Error > ruby 1.6.7 (2002-03-01) [powerpc-darwin6.0] > Abort > [Sam-Griffith-Jr-s-Computer:~] samgriff% > > > Anyone know a work around or why this may be happening? > > Thanks, > > Sam Griffith Jr. > sta...@ma... > > > > ------------------------------------------------------- > This SF.net email is sponsored by: eBay > Get office equipment for less on eBay! > http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5 > _______________________________________________ > Rubycocoa-talk mailing list > Rub...@li... > https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk |