How to use the graphics library in a stable way

Hi,

Please try to replace:

for (size_t It = 0; It < MdiFrames.size (); ++It) { MdiFrames[It]->Cleanup (); MdiFrames[It]->DeleteWindow (); }by:for (size_t It = 0; It < MdiFrames.size (); ++It) { delete MdiFrames[It]; }
Since everything is done in the TGMdiFrame destructor:

[code]//______________________________________________________________________________
TGMdiFrame::~TGMdiFrame()
{
// TGMdiFrame destructor.

Cleanup();
fMain->RemoveMdiFrame(this);
}
[/code]
Cheers,
Bertrand.