Hi Tom,
All your reports are also valid for v5.12 - so I assume we at least didn't deteriorate CINT's functionality for v5.18 or the trunk.
Replacing the line
TString TestIt::xxx(".");
with
TString TestIt::xxx = TString(".");
works around the problem.
I'm still working on test2.C; no idea why this fails that badly. I'll let you know when it's fixed.
Cheers, Axel.
On 2008-04-22 19:10, Tom Roberts wrote:
> I am (finally) trying to understand why my big macro works in Root 5.12,
> 5.14, and 5.16, but crashes in Root 5.18. Along the way I found this
> problem with a static TString:
>
>
> test1.C:
> Generates a syntax error when loaded or executed.
>
> test2.C:
> Loads OK and begins execution, printing "TestIt created" followed by a
> crash. Also, loading it twice generates a crash (no execution, just two
> .L commands in a row).
>
> test3.C:
> Illustrates a workaround -- change xxx to be TString*. Loads multiple
> times and runs just fine.
>
>
> Behavior is the same in Root 5.16 and Root 5.18, on Linux (Fedora Core
> 8). I installed both binary distributions of Root, using a symbolic link
> to quickly switch versions.
>
>
> Tom Roberts
>
Received on Wed Apr 23 2008 - 15:36:47 CEST
This archive was generated by hypermail 2.2.0 : Wed Apr 23 2008 - 17:50:02 CEST