Tuesday, March 25, 2014

Wrong number of arguments to - optional parameter

Let's say the procedure has this definition in GP2013 SP1
{ procedure DoStuff}
inout integer a;

Then in GP2013 SP2 it gets an optional parameter, like so:

{ procedure DoStuff}
inout integer a;
optional inout integer b;

If your dictionary is built on SP1 and wasn't recompiled against SP2, then this will result in "Wrong number of arguments to DoStuff". It doesn't matter that the new parameter is optional, the dictionary still has to be recompiled.

No comments:

Post a Comment

There was an error in this gadget