I have a library called lib1 and I am calling a method in this library called "myMethod()". So in the main program I have
lib1 lib = new lib1();
.
.
.
.
lib.myMethod (a,b,m,n);
.
.
This is OK surely. However, after the call gets sent to myMethod and returns instead of passing to the next instruction it calls "lib.myMethod(a,b,m,n)" and then I get a "ArrayOutOf Range exception.
What is happeningg??
Method call
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Mike GoldRank #50 · 30.6K pointsPosted Jun 1, 2007, 10:27 AM EDT
There is not enough info here to determine the problem. For example, without knowing the parameter types, what is happening inside the method, it's tough to figure out what is wrong.
analytic31 pointsPosted Jun 2, 2007, 1:05 AM EDT
.
.
lib.myMethod (a,b,m,n)
.
.
The parameters are double[] a, double[] b, intm, int n
If however I copy the method into my Main() and just use
.
.
myMethod (a,b,m,n)
.
.
Then everything works fine.