Skip to content

Method call

analytic

Asked Jun 1, 2007, 6:46 AM EDT2 answers
Share
LinkedInX
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??

2 Answers

Know the answer? Post it. Somebody with the same question will find it here.

  • Mike Gold
    0
    hi,

    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.
    0
  • 0
    I am calling this method from my Main() as described as
    .
    .
    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. 
    0