segmentation violation with for-loops

From: Johann Gutauer (johann@ripe.net)
Date: Fri Nov 12 1999 - 12:14:56 MET


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