Hi Patrick,
you are deleting the this pointer in the constructor. Not a good
idea. Where exactly do you get the fatal error? In the close window
are later when the object goes out of scope and delete is called again?
-- Fons
On Wed, Apr 19, 2000 at 01:19:52PM +0200, Patrick Dupre LCMI wrote:
> Hello,
>
> Building such a class:
> ParamPad::ParamPad (const TGWindow *p, const TGWindow *main, UInt_t w, UInt_t h, UInt_t options) : TGTransientFrame (p, main, 10, 10, options) {
> CloseWindow () ;
> }
>
> ParamPad::CloseWindow {
> delete this ;
> }
>
> ParamPad::~ParamPad {
> }
>
> gives a fatal error:
> Fatal in <operator delete>: unreasonable size (134613844)
>
>
> Why ???.
>
> --
> ---
> ==============================================================================
> 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
> ==============================================================================
--
Org: CERN, European Laboratory for Particle Physics.
Mail: 1211 Geneve 23, Switzerland
E-Mail: Fons.Rademakers@cern.ch Phone: +41 22 7679248
WWW: http://root.cern.ch/~rdm/ Fax: +41 22 7677910
This archive was generated by hypermail 2b29 : Tue Jan 02 2001 - 11:50:24 MET