Re: [ROOT] TCanvas in compiled application

From: Rene Brun (Rene.Brun@cern.ch)
Date: Wed Dec 18 2002 - 16:46:41 MET


Andrea,

This should work.
My guess is that you are running in batch mode.

Rene Brun

On Wed, 18 Dec 2002, Andrea Di Simone wrote:

> Hello,
> 
> I just upgraded to root version 3.04/02 (rh 7.2 gcc 2.96), and I have this
> small problem. With version 3.03/09 the line
> 
> TCanvas *c=new TCanvas();
> 
> put in the main of a compiled application caused a window to be drawn, and
> that was exactly what I wanted it to do.
> 
> The same code compiled with 3.04/02 doesn't produce any window. Later in
> the code I call TGraph::Draw (with the "ps" options) and it still doesn't
> draw the TCanvas.
> 
> Is there a way to force the TCanvas to be drawn?
> 
> Thanks,
> 
> Andrea.
> 



This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:51:24 MET