Hi, I read the following tutorial yesterday - it creates class members on stack - that is, it does not make them pointers and allocate them using new():
http://www.fltk.org/doc-2.0/html/example3.html I have also gone through examples that create members on heap - that is, the members are pointers - not values/objects. I have read in docs that Fl_Group automatically deletes the children, that you add, upon exit. What is the difference between creating members on stack and on heap? Don't you think creating them on stack will automatically release them that could cause Fl_Group to release non-existing memory? Best regards, Asif _______________________________________________ fltk mailing list fltk@easysw.com http://lists.easysw.com/mailman/listinfo/fltk