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??
Loading
analyticPosted Jun 2, 2007, 5:05 AM
.
.
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.
Mike GoldPosted Jun 1, 2007, 2:27 PM
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.