Re: Error reading user-defined type from file

From: Philippe Canal <pcanal_at_fnal.gov>
Date: Thu, 7 May 2009 14:01:34 -0500


Hi Marc,

Are you reading and writing with the same version of ROOT? Can you send a sample file?

Thanks,
Philippe.

Marc de Kamps wrote:
>
> Hi,
>
> I’m trying to read a user-defined class back from file. The object is
> of type SimulationInfoBlockVector, which internally has an
> std::SimulationInfoBlock:
>
> I get the following error message:
>
> SimulationInfoBlockVector* p_vec;
>
> root [9] p_vec = (SimulationInfoBlockVector*)p_file->Get("blockvector");
>
> Error in <TBufferFile::ReadVersion>: Could not find the StreamerInfo
> with a checksum of 81920 for the class "vector<SimulationInfoBlock>"
> in simulationorganizersmalldirect.root.
>
> Is there an indication as to what might be wrong here?
>
> Thanks,
>
> Marc
>
> -
>
> Dr. Marc de Kamps
>
> Biosystems Group
>
> School of Computing
>
> University of Leeds
>
> LS29JT, Leeds, UK
>
> dekamps_at_comp.leeds.ac.uk <mailto:dekamps_at_comp.leeds.ac.uk>
>
> http:/www.comp.leeds.ac.uk/dekamps
>
Received on Thu May 07 2009 - 21:01:42 CEST

This archive was generated by hypermail 2.2.0 : Fri May 08 2009 - 11:50:01 CEST