Hi Johann,
When you encounter problems like this, try:
1- to run in noopt mode
Root > .O0
2- If .O0 solves the problem, try to provide a macro as short as
possible
reproducing the problem. The time to fix a problem is in general
proportionnal to the size of the macro !
3- if you use an old version of Root, try with a more recent version.
Rene Brun
Johann Gutauer wrote:
>
> Hi,
>
> I wrote a macro. Everything worked until I put two for-loops around the major
> part of it. I think I'm running into a limitation of cint, but I can't solve
> the problem.
>
> The macro looks like this:
>
> void date_to_struct(char *datestring, tm *ptr_tm)
> {
> ....
> }
> long timestamp_from_tm(tm *ptr_tm)
> {
> ....
> }
>
> Int_t main()
> {
> .......
> for(Int_t box1 = 1; box1 <= MAXBOX; box1++)
> {
>
> for(Int_t box2 = 1; box2 <= MAXBOX; box2++)
> {
> ....
> date_to_struct(startdate, ptr_newtime);
> timestamp1=timestamp_from_tm(ptr_newtime);
> ....
>
> }
> }
> .......
> }
>
> I broke it down to the two function calls above. The programm will not reach
> the functions itself.
> I'm using ROOT 2.21/08 with CINT 5.13.92 on Sun.
>
> Any help is welcome!
>
> Regards,
> Johann
This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:43:42 MET