Dear Folks,
I am still on FLTK 1.1.6 and
I played with Erco's Fl_Browser
example on SLES9 and SLES10,
and I discovreed that it crashed on SLES9
but worked perfectly fine with SLES10:
I compiled the folloing code with:
gcc -ggdb -I/usr/local/include -I/usr/X11R6/include -o columns columns.cpp
-L/usr/X11R6/lib -L/usr/local/lib /usr/local/lib/libfltk.a -lm -lXext -lX11
-lsupc++
#include <FL/Fl.H>
#include <FL/Fl_Window.H>
#include <FL/Fl_Browser.H>
//
// Demonstrate Fl_Browser with columns
// erco 09/16/05
//
int main() {
Fl_Window *w = new Fl_Window(900,300);
Fl_Browser *b = new Fl_Browser(10,10,w->w()-20,w->h()-20);
int widths[] = { 70, 70, 70, 70, 70, 40, 40, 70, 70, 50, 0 };
// widths for each column
b->column_widths(widths);
b->column_char('\t');
// tabs as column delimiters
b->type(FL_MULTI_BROWSER);
b->add("USER\tPID\t%CPU\t%MEM\tVSZ\tRSS\tTTY\tSTAT\tSTART\tTIME\tCOMMAND");
// lines of tab delimited data
b->add("root\t2888\t0.0\t0.0\t1352\t0\ttty3\tSW\tAug15\t0:[EMAIL
PROTECTED]@f/sbin/mingetty tty3");
b->add("erco\t2889\t0.0\t13.0\t221352\t0\ttty3\tR\tAug15\t1:[EMAIL
PROTECTED]@f/usr/local/bin/render a35 0004");
b->add("uucp\t2892\t0.0\t0.0\t1352\t0\tttyS0\tSW\tAug15\t0:[EMAIL
PROTECTED]@f/sbin/agetty -h 19200 ttyS0 vt100");
b->add("root\t13115\t0.0\t0.0\t1352\t0\ttty2\tSW\tAug30\t0:[EMAIL
PROTECTED]@f/sbin/mingetty tty2");
b->add("root\t13464\t0.0\t0.0\t1352\t0\ttty1\tSW\tAug30\t0:[EMAIL
PROTECTED]@f/sbin/mingetty tty1 --noclear");
w->resizable(b);
w->end();
w->show();
return(Fl::run());
}
I also loaded the core file and the backtrace looked like that:
#0 0x0805090e in send ()
(gdb) backtrace
#0 0x0805090e in send ()
#1 0x080509e8 in Fl_Group::handle ()
#2 0x0804f149 in Fl_Browser_::handle ()
#3 0x08050911 in send ()
#4 0x080509e8 in Fl_Group::handle ()
#5 0x0804b137 in send ()
#6 0x0804b9fb in Fl::handle ()
#7 0x0805546f in fl_handle ()
#8 0x08055e49 in do_queued_events ()
#9 0x080561cc in fl_wait ()
#10 0x0804c538 in Fl::wait ()
#11 0x0804c6a3 in Fl::run ()
#12 0x0804ace0 in main () at columns.cpp:25
(gdb)
Has anybody any idea ?
Thanks in advance,
Karl
_______________________________________________________________
SMS schreiben mit WEB.DE FreeMail - einfach, schnell und
kostenguenstig. Jetzt gleich testen! http://f.web.de/?mc=021192
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk