bug-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSMatrix, NSTast and NSWindow bugs.


From: jan . trembulak
Subject: NSMatrix, NSTast and NSWindow bugs.
Date: Wed, 20 Jun 2001 13:05:30 +0000

I have detecetd some bugs: (gstep-base-1.0.2, gstep-gui 0.6.9)

NSMatrix:
    when the NSMatrix object is loade from gmodel file,
    the method _selectCel: atRow: column: is invoked. In thi method is
called method:
    [self drawCellAtRow: column:] and becouse the matrix has not the
window (_window = nil),
    the NSExpection is raised. (In  NSView.m: 1324 in lockFocusInRect:)
    The solution is:
    (NSMatrix: 982)
       if (lastRow != -1 && lastColumn != -1
           && (lastRow != row || lastColumn != column) && [self window]
!= nil)
             [self drawCellAtRow: lastRow column: lastColumn];

NSTask:
    The handler of signal 'SIGHLD' is invoked only first time (static
function handleSignal, line 72)
    so that way the NSTask catch the termination of any launched
application only first time.
    The sollution is:
    (NSTask: 72)
    static void handleSignal(int sig)
    {
          hadChildSignal = YES;
          signal(SIGCHLD, handleSignal);
    }

NSWindow:
    When the object of NSWindow class is allocated, initialized and then
released without
    ordering front, the application terminate with Segmentation fault.
    Program received signal SIGSEGV, Segmentation fault:
    0xdf408a3f in XFreeGC () from /usr/openwin/lib/libX11.so.4
    (gdb) bt
    #0  0xdf408a3f in XFreeGC () from /usr/openwin/lib/libX11.so.4
    #1  0xdf89c15b in -[XGContext(DPSWindow) DPStermwindow:] ()
       from
/usr/local/GNUstep/System/Libraries/ix86/solaris2.8/gnu-gnu-gnu-xgps/libgnustep-xgps.so.0

    #2  0xdfaaf52e in -[NSWindow dealloc] ()
       from
/usr/local/GNUstep/System/Libraries/ix86/solaris2.8/gnu-gnu-gnu-xgps/libgnustep-gui.so.0

    #3  0xdf706803 in -[NSObject release] ()
       from
/usr/local/GNUstep/System/Libraries/ix86/solaris2.8/gnu-gnu-gnu-xgps/libgnustep-base.so.1




Jan Trembulak





reply via email to

[Prev in Thread] Current Thread [Next in Thread]