Hi, On Mon, Aug 22, 2011 at 1:36 PM, asif saeed <[email protected]> wrote:
> 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? > Basically, I don't understand this piece of text in the above link: "You can also define the widgets as pointers and have your constructor call "new" to define them, this can be more convenient in some cases and is necessary if you want to repeat or vary the set of widgets." Best regards, Asif _______________________________________________ fltk mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

