03-01-2013 04:11 AM
Me again,
I have to test a function with more than 63 Function Parameters...
Teststand works fine for me till 63 Parameters, but if i add one more in my IDL TestStand throws this Exception:
"This function does not have parameter information in the DLL or uses types not recognized by TestStand"
I don't use other Types than in Functions which work correctly
Is there a Limit to the Number of Parameters?
using Microsoft Visual Studio 2010 and Teststand 2012
03-01-2013 09:31 AM
There might very well be some sort of limitation. Either in Visual Studio or TestStand. Usage of such a large number of parameters is pretty uncommon. You can probably work around it by passing your parameters as a struct or an array instead of passing each parameter individually. Or, if the problem is specific to type library use, you could try not having a type library and see if you can then call it. TestStand can automatically get most of the parameter type info from Visual Studio created C++ dlls without a type library (though you can't get parameter names that way). If you discover more info about this issue, like whether or not it's specific to type library usage, please let us know. I've recorded this issue in our tracking database for further investigation.
-Doug
03-04-2013 05:22 AM
It really seems to be an Type Library Problem.. I just deleted my 3 functions with more than 63 parameters in my .def and .idl file, instead i set " __declspec(dllexport)" in the header.
The Functions appear in Teststand without any error, but accourdingly without parameter names!
03-04-2013 10:01 AM - edited 03-04-2013 10:29 AM
I found a limitation of 63 parameters in TestStand's type library reading code. I have logged the issue in our tracking database to consider changing in a future version of TestStand.
-Doug
03-04-2013 10:28 AM
thanks dug, also if it is not usual to use so much parameter arguments!
I will think about a workaround!
03-05-2013 01:01 AM