What I am doing is, I am creating a box in fl_double window like this. V3DS_box = new Fl_Box(FL_DOWN_FRAME, 400, 10, w+10, h+10, "");
but I need to execute the main subroutine several times without closing the fl_double window, if I close fl_double window then its ok. but without closing the window, I got an error, because every time fl_box creates on the same fl_double window. So, here I need to delete V3DS_box first in order to do the operation again. The issue is how can delete the box. I tried like this, if(V3DS_box) free(V3DS_box); V3DS_box = new Fl_Box(FL_DOWN_FRAME, 400, 10, w+10, h+10, ""); in debug mode, it gives no error but in release mode, the system goes to not responding and crashed. So, what is the solution of delete fltk allocations ? how can i delete first and recreate this box. ? thanks. _______________________________________________ fltk mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

