[ROOT] Cannot create gif file in batch mode?

From: Choi Ki-young (xenus@gnu.org)
Date: Sun Aug 11 2002 - 09:08:30 MEST


I want to create graph to gif files. But when I run my program, 
it print out this error messagem. 

Cannot create gif file in batch mode.

I don't understand what is the reason for this error.

---<My code>---
#include "TCanvas.h"

void write_fields(Fields *current, int iteration)
{
        char gif[256];
        
        TCanvas *c1 = new TCanvas("c1", "2D FDTD", 800, 600);

        current->Hz.Draw();
        c1->Modified();
        c1->Update();
        sprintf(gif, "pict_%.3d.gif", iteration);
        c1->SaveAs(gif);
}


-- 
Sincerely, Ki-young






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