[fltk.bugs] coredump on Fl_Browser resize

2011-12-21 Thread mattes
I re-compiled some code (initially developed under Fedora11 and fltk-1.1.9-4) now rebuild under Fedora15 with fltk-1.1.10-6. I am a newbee to fltk. Anything my code is doing wrong? Unfortunately the Fedora 15 coredumps, It opens up fine and displays. When I resize the window, the window is

Re: [fltk.bugs] coredump on Fl_Browser resize

2011-12-21 Thread Greg Ercolano
On 12/21/11 13:54, mattes wrote: for ( int i=0; i sizeof(data_colpercent); i++ ) { data_widths[i] = w * data_colpercent[i] /100; } You're overrunning memory here. sizeof() returns the number of bytes in the array, not the number of elements.