Is the TASImage class meant to be streamed to/from a file?
When I try to read this class back from a file which I saved one to, it doesn’t have the image information anymore. For example, the TASImage::Draw() command won’t work on the streamed-in object.
Here’s a simple example:
gSystem->Load("$ROOTSYS/lib/libASImage.so")
TASImage i("$ROOTSYS/tutorials/rose512.jpg")
i.SetName("rose")
i.Draw()
TFile f("test.root","RECREATE")
i.Write()
f.Close()
Then, when you try to read it in a different root session,
gSystem->Load("$ROOTSYS/lib/libASImage.so")
TFile f("test.root")
f.ls()
rose.Draw()
*** Break *** bus error
This is with ROOT version 4.04/02 on Mac OS X.
Should I just not try to save these objects to a file, or am I doing something wrong?
Thanks,
Aaron Dominguez