Bernd,
This is a CINT limitation for the length of the constant strings.
Instead of an explicit string like you do, use a variable like in the example in
the attachement
Rene Brun
Olivier Couet wrote:
>
> Hi Bernd,
>
> Well, not for me. In the little example I sent you if you replace TText
> by TLatex it crashes too with string longer than 283 characters.
>
> Cheers, Olivier
>
> On Tue, 20 Apr 2004, Bernd Reinhold wrote:
>
> > Hi Olivier!
> >
> >
> > TLatex worked where TText failed (at least for the example below). But has it a limit, too?
> >
> > Cheers, Bernd.
> >
> >
> > -----Original Message-----
> > From: Olivier Couet
> > Sent: Tue 4/20/2004 4:38 PM
> > To: Bernd Reinhold
> > Cc: Olivier Couet; roottalk@pcroot.cern.ch
> > Subject: RE: [ROOT] auto-wrapping
> >
> > Hi Bernd,
> >
> > Yes it seems there is some limit. I can produce a crash with the following
> > macro:
> >
> > {
> > TText t(0.,0,"
> > XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX... // 284 X make it crash 283 is fine
> > ");
> > }
> >
> > I do not know why yet ...
> >
> > Cheers, Olivier
> >
> >
>
> --
> Org: CERN - European Laboratory for Particle Physics.
> Mail: 1211 Geneve 23 - Switzerland Mailbox: J25910
> E-Mail: Olivier.Couet@cern.ch Phone: +41 22 7676522
> WWW: http://cern.ch/Olivier.Couet/ Fax: +41 22 7677155
{
char atext[590];
for (Int_t i=0;i<585;i++) atext[i] = 'X';
TText t(0.,0,atext); //works
//the following line will not work
//TText t(0.,0,"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX");
t.Draw();
}
This archive was generated by hypermail 2b29 : Sun Jan 02 2005 - 05:50:07 MET