08-06-2009 08:34 PM
A DLL (developed in C#) that I successfully used with Labwindows several months ago has grown significantly, and now I need to update my software with this new version of the DLL. However when I try to create the wrapper for the DLL via "Tools->Create .NET Controller", the code generation process fails. The error I see is:
"Error occurred while generating .NET controller code. CVI automation error: invalid param"
Can someone please tell me what might be causing this? Does this mean there's a bug or some sort of incompatibility in the DLL? If so, what should I tell the DLL developer to look for?
Thanks for the help
-Mike
Solved! Go to Solution.
08-07-2009 09:42 AM
The error is an automation (ActiveX) error when calling CVI from the .NET code generator. Can you try generating a .NET wrapper for other assemblies, say the Accessibility assembly near the top of the list? If this error happens when generating wrappers for any assembly, then it could indicate some problem with your CVI installation. If this error only occurs when generating a wrapper for this DLL, then there could be some incompatibility with this DLL. If so, please post the DLL (and any of its dependencies), so that the error can be reproduced by others. Also, mention the CVI version you are using and the operating system you are seeing this on.
08-07-2009 05:42 PM
Hi
I worked with the DLL developer to create another version of the DLL.. and now the wrapper generation works.
The problem was that this DLL had a dependency (it was another DLL). He was using an older version of that DLL that wasn't 100% compatible.
In any case, thanks for the help.