> In my destructor, I am trying to delete the memory of Fl_window.

Why? Can you explain what it is that you are doing that requires you to
explicitly delete a window?

With fltk's design, it is usually not necessary to explicitly delete
widgets that are created either at the "top level", or as children of
other group/window widgets, since fltk will automatically reap them for
you.

If you are repeatedly creating and destroying a window, are you sure
that is necessary? It is generally more efficient to create the window,
then just show/hide it as required, but not delete it.

Just some thoughts and questions...






SELEX Sensors and Airborne Systems Limited
Registered Office: Sigma House, Christopher Martin Road, Basildon, Essex SS14 
3EL
A company registered in England & Wales.  Company no. 02426132
********************************************************************
This email and any attachments are confidential to the intended
recipient and may also be privileged. If you are not the intended
recipient please delete it from your system and notify the sender.
You should not copy it or use it for any purpose nor disclose or
distribute its contents to any other person.
********************************************************************

_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to