FLTK logo

RE: [fltk.general] Dialog Deletion

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 All Forums  |  Back to fltk.general  ]
 
Previous Message ]New Message | Reply ]Next Message ]

RE: Dialog Deletion "MacArthur, Ian \(SELEX\) \(UK\)" May 02, 2006  
 
> Is there a precedence that needs to be followed in deleting 
> widgets that were created? I have a dialog window and in the 
> destructor I am trying to delete everything that I new'd in 
> the constructor. I have been getting core dumps. When I moved 
> the delete of an Fl_Scroll to after the deletion of the 
> widgets that are in it, the blowup has gone away.

Not sure exactly what your circumstance is, but I've pretty much always gone with deleting things in the reverse order they were created. And always remove "contents" before removing the "container".

So far, so good...
-- 
Ian


Direct Link to Message ]
 
     
Previous Message ]New Message | Reply ]Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.