Re: Another bug?

From: Ilka Antcheva <Ilka.Antcheva_at_cern.ch>
Date: Wed, 11 May 2005 10:58:24 +0200


Hi Thomas,

Please see below:

TCanvas *c = new TCanvas;
c->SaveSource("test1.C", ""); // Works

   ^^^^

TCanvas *d = c->DrawClone();
                ^^^^^

d->SaveSource("test2.C", ""); // Works

   ^^^^

If you want to use TCanvas *d = c->Clone(); you need to draw the canvas d->Draw(); before to execute d->SaveSource("test2.C", "");

Cheers, Ilka

Thomas Bretz wrote:

> Hi,
>
> can somebody explain me why the following simple thing crashs (note
> that the case in which I'm doing this is much m,ore complicated...):
>
> TCanvas *c = new TCanvas;
> c->WriteSource("test1.C", ""); // Works
> TCanvas *d = c->Clone();
> d->WriteSource("test2.C", ""); // Crashs
>
> Thomas.
>
Received on Wed May 11 2005 - 10:58:30 MEST

This archive was generated by hypermail 2.2.0 : Tue Jan 02 2007 - 14:45:07 MET