[ROOT] Macros with parameters

From: Victor Ikonnikov (Victor.Ikonnikov@cern.ch)
Date: Thu Sep 07 2000 - 19:51:12 MEST


Hi, all!

I've got a problem running macro with parameters.
If i call ".x AMUAnalysis.C(0)" from ROOT prompt
and have  "void AMUAnalysis(int triggerType) {"
inside the macro, it does everything it should,
but at the very end of execution i have 
"That's all, folks!

 *** Break *** segmentation violation
Root > Function AMUAnalysis() busy flag cleared"
message. The macro ends with the following lines:
"  cout<< "That's all, folks!"<<endl;

}"
So i have no idea where and why it crashes.
If i declare parameter(s) inside the macro,i.e.
run just ".x AMUAnalysis.C" everything' fine.
And this doesn't depend on the number of type of parameters.
Does anybody knows what could it be?

Sincerely yours,
Victor



This archive was generated by hypermail 2b29 : Tue Jan 02 2001 - 11:50:32 MET