[ROOT] "piping" objects into Rint?

From: Wolfgang Waltenberger (walten@qhepu3.oeaw.ac.at)
Date: Mon Aug 26 2002 - 11:30:07 MEST


Dear Roottalk, 

consider the following code in an application:

TRint r("Test", NULL,  NULL );
TCanvas *c1 = new TCanvas();
r.Run();

How can I "pull" my TCanvas object "into" the runtime environment?  All
my efforts did not work; TRint seems to "see" an object called c1, but
it's always a null pointer - no matter if TCanvas is used with "static"
or "new" or anything . Although, it is a pointer pointing to a TCanvas
object, mind you. So is there a simple way to preserve objects.  I want
instantiation to occur in the mother application, then mess around with
them in the TRint "daughter", like a very fancy debugger ...
Is there a way?

Ciao, Wolfgang.



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