It would be great to have an answer to this problem.
Thank.
> I do not understanf by just putting a delete (this) inside the
> FitPad::CloseWindow () I get a Fatal in <operator delete>: storage area overwritten
> And nothing in the destructor !!!
>
> FitPad::FitPad (const TGWindow *p, const TGWindow *main, UInt_t w, UInt_t h, UInt_t options, DataSet *d, Display *plot) : TGTransientFrame (p, main, w, h, options) {
> fFitPad = new TGCompositeFrame (this, 50, 50, kHorizontalFrame) ;
> AddFrame (fFitPad, new TGLayoutHints (kLHintsTop, 0, 0, 0, 0)) ;
> fStringSplit = new TGString ("Splitting: ") ;
> fStringDSplit = new TGString (" D Splitting: ") ;
> fActionPad = new TGCompositeFrame (fFitPad, 50, 50, kVerticalFrame) ;
> fFitPad->AddFrame (fActionPad, new TGLayoutHints (kLHintsRight | kLHintsCenterY, 2, 2, 2, 2)) ;
> fActionPad->Resize (fActionPad->GetDefaultSize ()) ;
> fCloseButton = new TGTextButton (fActionPad, "&Close", M_FIT_CLOSE) ;
> fActionPad -> AddFrame (fCloseButton, new TGLayoutHints (kLHintsTop | kLHintsExpandX | kLHintsCenterY, 5, 5, 5, 5)) ;
> fCloseButton -> Resize (fCloseButton->GetDefaultWidth (), GetDefaultHeight ()) ;
> fCloseButton -> Associate (this) ;
> SetWindowName ("Line Fitting") ;
> MapSubwindows () ;
> Resize (GetDefaultSize ()) ;
> MapWindow () ;
> fClient -> WaitFor (this) ;
> }
>
> --
> ---
> ==============================================================================
> Patrick DUPRE | | Tel: (33 4) 76-88-78-51
> CNRS/LCMI (GHMFL) | | Fax: (33 4) 76-85-56-10
> 25 Rue des Martyrs, BP 166 | | http://eschyle.polycnrs-gre.fr
> F-38042 GRENOBLE Cedex 09 | | email: pdupre@polycnrs-gre.fr
> ==============================================================================
>
--
---
==============================================================================
Patrick DUPRE | | Tel: (33 4) 76-88-78-51
CNRS/LCMI (GHMFL) | | Fax: (33 4) 76-85-56-10
25 Rue des Martyrs, BP 166 | | http://eschyle.polycnrs-gre.fr
F-38042 GRENOBLE Cedex 09 | | email: pdupre@polycnrs-gre.fr
==============================================================================
This archive was generated by hypermail 2b29 : Tue Jan 02 2001 - 11:50:24 MET