[ROOT] RE: length limit of CINT's input line?

From: Philippe Canal (pcanal@fnal.gov)
Date: Wed Jul 21 2004 - 18:14:06 MEST


Hi Stilianos,

There is a limit to the command line (1023 characters).  In addition on some xterm you have some weird limits on what can be copy/pasted.

When reaching the limit ROOT usually quit with:
    *** Error: Getline(): input buffer overflow

When you have so many characters of code, it is better to store it in a (temporary) file.

You can also split the command on several lines and still have it executed at once by starting with a {

Cheers,
Philippe.
-----Original Message-----
From: owner-about-root@listserv.fnal.gov [mailto:owner-about-root@listserv.fnal.gov]On Behalf Of Stilianos Kesisoglou
Sent: Thursday, July 15, 2004 12:08 PM
To: about-root@fnal.gov; roottalk@pcroot.cern.ch
Subject: length limit of CINT's input line?


Hi, 
Is there any limit on the lenght of a command line given to CINT? 
I've tried to make and fit some plots intereactively and instead of writing a macro 
to do it, I just wrote a long line: 
TH1F *h1 = new TH1F(....); myTree->Draw(...)  etc 
When I tried to repeat it many times by copying and pasting: 
TH1F *h1 = new TH1F(....); myTree->Draw(...) 
TH1F *h2 = new TH1F(....); myTree->Draw(...) 
TH1F *h3 = new TH1F(....); myTree->Draw(...) 
TH1F *h4 = new TH1F(....); myTree->Draw(...) 
TH1F *h5 = new TH1F(....); myTree->Draw(...) 
... 
the first 3-4 lines where executed ok and the ROOT stuck. 
When I execute them one by one there is no problem. 
Thanks! 
Stelios. 



This archive was generated by hypermail 2b29 : Sun Jan 02 2005 - 05:50:09 MET