Hi, (sorry if my english isn't perfect ;-)
I've a NSView subclass with a NSMutableArray instance variable, and a
new drawRect method. In the drawRect method I do this :
NSLog(@"count = %d", [myArray count]);
And the second time the drawRect method is called it crashes. (Not the
first time... I don't understand anything !)
Is it a bug of GNUstep ? I'm too bad to find it alone :))
(I've got gcc 2.95.2 and the latest gnustep snapshot)
Tell me if you need an "as small as possible" apps which shows the bug...
Thanks,
Nicolas
Here's what gdb says to me :
#0 0x80559a5 in objc_msg_lookup (receiver=0x821de80, op=0x805fe38)
at ../../../gcc-2.95/libobjc/objc/sarray.h:230
#1 0x804c63f in _i_OnlineView__drawRect_ (self=0x822a530, _cmd=0x402236a8,
rect={origin = {x = 0, y = 0}, size = {width = 190, height = 390}})
at Sources/OnlineView.m:60
#2 0x4014e023 in _i_NSView__displayIfNeededInRectIgnoringOpacity_ ()
from
/usr/local/GNUstep/System/Libraries/ix86/linux-gnu/gnu-gnu-gnu-xgps/libgnustep-gui.so.0
#3 0x4014f8d5 in _i_NSView__displayIfNeededInRectIgnoringOpacity_ ()
from
/usr/local/GNUstep/System/Libraries/ix86/linux-gnu/gnu-gnu-gnu-xgps/libgnustep-gui.so.0
#4 0x4014f8d5 in _i_NSView__displayIfNeededInRectIgnoringOpacity_ ()
from
/usr/local/GNUstep/System/Libraries/ix86/linux-gnu/gnu-gnu-gnu-xgps/libgnustep-gui.so.0
#5 0x4014ce55 in _i_NSView__displayIfNeededIgnoringOpacity ()
from
/usr/local/GNUstep/System/Libraries/ix86/linux-gnu/gnu-gnu-gnu-xgps/libgnustep-gui.so.0
#6 0x4014c236 in _i_NSView__displayIfNeeded ()
from
/usr/local/GNUstep/System/Libraries/ix86/linux-gnu/gnu-gnu-gnu-xgps/libgnustep-gui.so.0
#7 0x4015c8ff in _i_NSWindow__displayIfNeeded ()
from
/usr/local/GNUstep/System/Libraries/ix86/linux-gnu/gnu-gnu-gnu-xgps/libgnustep-gui.so.0
#8 0x4015c9a9 in _i_NSWindow__update ()
from
/usr/local/GNUstep/System/Libraries/ix86/linux-gnu/gnu-gnu-gnu-xgps/libgnustep-gui.so.0
#9 0x4015f9ae in _i_NSWindow___processResizeEvent ()
from
/usr/local/GNUstep/System/Libraries/ix86/linux-gnu/gnu-gnu-gnu-xgps/libgnustep-gui.so.0
#10 0x40160473 in _i_NSWindow__sendEvent_ ()
from
/usr/local/GNUstep/System/Libraries/ix86/linux-gnu/gnu-gnu-gnu-xgps/libgnustep-gui.so.0
#11 0x40099b76 in _i_NSApplication__sendEvent_ ()
from
/usr/local/GNUstep/System/Libraries/ix86/linux-gnu/gnu-gnu-gnu-xgps/libgnustep-gui.so.0
#12 0x40098ab4 in _i_NSApplication__run ()
from
/usr/local/GNUstep/System/Libraries/ix86/linux-gnu/gnu-gnu-gnu-xgps/libgnustep-gui.so.0
#13 0x804bef6 in main (argc=1, argv=0xbffff334, env=0xbffff33c)
at Sources/main.m:35