Re: [ROOT] Bug in TGNumberEntry?

From: cstrato@EUnet.at
Date: Mon Dec 10 2001 - 20:05:50 MET


Dear Fons

Thank you for answering my three questions so fast.

Regarding my macro guiNum.C,  I will try to compile it, however, I can
already say the following:
First, I have written this macro for TGTextEntry, and there everything
works fine. I have only replaced the code for TGTextEntry with
TGNumberEntry, and suddenly I get the problem mentioned.

Best regards
Christian

Fons Rademakers wrote:

> No dtors are needed for those two classes since there is nothing to delete.
> Did you try to compile your guiNum.C (.x guiNum.C++)? Does this give
> the same error?
>
> Cheers, Fons.
>
> On Sunday 09 December 2001 18:59, cstrato@EUnet.at wrote:
> > Dear Rooters
> >
> > I have created a gui macro displaying a frame containing
> > a TGNumberEntry field (see macro guiNum.C below).
> >
> > Everything works fine, also when I close the gui.
> > However, when I want to restart the macro, I get a
> > *** Break *** segmentation violation.
> > Normally, this happens when I forgot to delete an object,
> > however, I could not find any problem with my macro.
> >
> > When checking "TGNumberEntry.cxx" I realized that
> > classes TGNumberEntryField, TGNumberEntryLayout do not
> > have a destructor?
> > Is this a bug, and could this be the problem? Or do they simply inherit
> > the destructor?
> >
> > Thank you in advance for your help.
> >
> > Best regards
> > Christian
> > ----------------------------------
> > C.h.r.i.s.t.i.a.n  S.t.r.a.t.o.w.a
> > V.i.e.n.n.a,  A.u.s.t.r.i.a
> >
> >



This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:51:11 MET