[Gate-users] benchmarkPET

Simon Stute gate.stute at gmail.com
Wed Jul 25 12:03:11 CEST 2007


Hi,

Really good job David !! This error has already caused too much problem but
that's all now !
And this is probably the same thing in the GateToLMF class because some
similar problem has already occurred and perhaps in other output classes.
Thanks again.

Cheers
Simon

2007/7/25, David GUEZ <davguez at free.fr>:
>
>  Hello,
> finally, I found the solution to this problem.
> This is due to transient string object created within a function and
> returned with no copy...
> so, to solve the problem, one just have to replace, in
> include/GateToRoot.hh  the line
>
>   const char* GetFilePath()                  { return
> (m_fileName+".root").c_str();};
>
> by
>
>   const char* GetFilePath()                  { static char fp[512];
> strncpy(fp,(m_fileName+".root").c_str(),511); return fp;};
>
> and recompile, and all will be ok... (in the first version,
> (m_filename+".root") is a new transiant object, deleted at the end of the
> function, so its "c_str() member will not be valid outside of the function
> itsef...)
>
>
> Thanks to all,
>
>     cheers
>
> Simon Stute a écrit :
>
> Hi all,
>
> I remember I already had this problem on Suse10.2 and Ubuntu Dapper 6.0.6,
> but it appeared only few times and then it disappeared ...
> So I did not pay attention on the number or the type of characters used.
> One thing is sure : this bug is very strange ...
>
> Simon
>
> 2007/7/19, Paola Solevi <Paola.Solevi at mib.infn.it>:
> >
> > Hi corinne,
> > I'm running GATE on scientific linux @ cern and I have the same problem
> > for root file name longer than 10 characters (>10).
> >
> >     paola
> >
> > On Thu, 19 Jul 2007, GROISELLE corinne wrote:
> >
> > > Concerning the problem we have with the root output file names
> > (replacing the predefined file name by a question mark), I'd like to know if
> > other people have the same problem when using the last version of RH
> > Enterprise.
> > We just tried on another system running Ubuntu 7.04 and everything works
> > fine!!!...
> > >
> > >
> > >
> > > Sure, we could rename the files at the end of the simulation but when
> > running on a cluster or on multiprocessor systems, we would have to create
> > multiple directories to store these files all sharing the same name.
> > >
> > >
> > >
> > > Corinne
> > >
> > > ________________________________
> > >
> > > De : Roberta Matheoud [mailto:roberta.matheoud at maggioreosp.novara.it ]
> > > Envoyé : jeudi 19 juillet 2007 11:14
> > > À : GROISELLE corinne
> > > Objet : Re: [Gate-users] benchmarkPET
> > >
> > >
> > >
> > > Hi,
> > >
> > >
> > >
> > > I had the same problem when I named the *.root file using number and
> > '_'. When your simulation will end, you can rename the '?' file using the
> > name you want, i.e. test.root, and analyze it with Root.
> > >
> > >
> > >
> > > Bye
> > >
> > >
> > >
> > > Roberta
> > >
> > >       ----- Original Message -----
> > >
> > >       From: GROISELLE corinne <mailto: corinne.groiselle at sodern.fr>
> > >
> > >       To: gate-users at lists.healthgrid.org
> > >
> > >       Sent: Thursday, July 19, 2007 10:57 AM
> > >
> > >       Subject: RE: [Gate-users] benchmarkPET
> > >
> > >
> > >
> > >       I haven't changed anything in the macro files and the default
> > name for the root output was set to 'benchmarkPET' in ' benchmarkPET.mac
> > '.
> > >
> > >       It's 12 characters long!
> > >
> > >
> > >
> > >       Corinne
> > >
> > >
> > >
> > >
> > > ________________________________
> > >
> > >
> > >       De : Georgi Gerganov [mailto: ggerganov at gmail.com]
> > >       Envoyé : jeudi 19 juillet 2007 10:48
> > >       À : GROISELLE corinne
> > >       Cc :
> > >       Objet : Re: [Gate-users] benchmarkPET
> > >
> > >
> > >
> > >       Hi,
> > >
> > >       I think you should check what is the root-output filename set
> > to. Open the 'benchmarkPET.mac':
> > >
> > >       ...
> > >       /gate/output/root/setFileName [somename]
> > >       ...
> > >
> > >       [somename] should be at least 12 characters long. Otherwise the
> > "?"-file is generated.
> > >       Hope this helps you. Good luck!
> > >
> > >       Georgi
> > >
> > >       On 7/19/07, GROISELLE corinne <corinne.groiselle at sodern.fr >
> > wrote:
> > >
> > >       Hello,
> > >
> > >       I just installed gate on a new system and I wanted to run
> > benchmarkPET to verify the installation was correct.
> > >
> > >       I just ran "Gate" from the benchmarkPET directory and a file
> > named "?" that seems to be the root output was generated.
> > >
> > >       The file size is growing and the simulation seems to be running
> > correctly.
> > >
> > >       Did someone already encounter this problem?
> > >
> > >       Thanks,
> > >
> > >       Corinne Groiselle
> > >
> > >
> > >
> > >
> > >
> > >       Direction de l'Ingénierie et des Moyens Industriels Communs
> > >
> > >       Département Etudes Systèmes Neutroniques
> > >
> > >       20, avenue Descartes 94451 Limeil Brévannes Cedex, France
> > >
> > >       Tel : + 33 (0) 1 45 95 70 00 poste 7708
> > >
> > >       Courriel : corinne.groiselle at sodern.fr
> > >
> > >
> > >
> > >
> > >       _______________________________________________
> > >       Gate-users mailing list
> > >       Gate-users at lists.healthgrid.org
> > >       http://lists.healthgrid.org/mailman/listinfo/gate-users
> > >
> > >
> > >
> > >
> > > ________________________________
> > >
> > >
> > >       _______________________________________________
> > >       Gate-users mailing list
> > >       Gate-users at lists.healthgrid.org
> > >       http://lists.healthgrid.org/mailman/listinfo/gate-users
> > >
> > >
> > _______________________________________________
> > Gate-users mailing list
> > Gate-users at lists.healthgrid.org
> > http://lists.healthgrid.org/mailman/listinfo/gate-users
> >
> >
> ------------------------------
>
> _______________________________________________
> Gate-users mailing list
> Gate-users at lists.healthgrid.orghttp://lists.healthgrid.org/mailman/listinfo/gate-users
>
>
> _______________________________________________
> Gate-users mailing list
> Gate-users at lists.healthgrid.org
> http://lists.healthgrid.org/mailman/listinfo/gate-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opengatecollaboration.org/mailman/private/gate-users/attachments/20070725/a8ddc0e0/attachment.htm>


More information about the Gate-users mailing list