03-27-2007 05:10 AM - edited 03-27-2007 05:10 AM
Message Edited by Sean on 03-27-2007 11:11 AM
04-10-2007 08:22 AM
Hi Sean,
Can you send me the source code for your .NET dll?
What functions are being called in this dll? Is it possible that the function is returning the error rather than the actual passing of the empty array?
What version of Visual Studio are you using to create this 2003 or 2005?
If you can send me the source then I'll take a closer look at this
Regards
Hannah
NIUK & Ireland
04-18-2007 03:55 AM - edited 04-18-2007 03:55 AM
Hello. I've asked for the source code for the .net DLL. I should be able to post this soon. I'm fairly sure that the problem is with TestStand though.
I've made a VI that calls the same .net DLL. It calls the method twice, with an array of 4 elements then with an empty array (i.e. the same is what I did from TestStand). It works perfectly from LabVIEW.
You should see just the same if you make a .net DLL that takes an array as an input parameter. It seems that the .net adaptor is incorrectly interpreting an empty array as not existing.
VI attached.
Thanks
-Sean.
Message Edited by Sean on 04-18-2007 09:56 AM
04-19-2007 04:04 AM
06-18-2010 07:34 AM
Hi,
I have the same issue. I'm with TestStand 4.2 and VS2008 (.NET 3.5).
Sometimes, the array of objects that we pass to DLL is empty. It creates an error at TestStand level.
Do we still need to do a work-around or it has been fix?
06-18-2010 09:29 AM
By the way, the parameter is used in a constructor.
06-21-2010 07:48 AM - edited 06-21-2010 07:48 AM
MatLaroche,
This is still a known issue of TestStand 4.2.1. If you do a search of ni.com for the ID, you'll find that NI documents known issues pretty well:
http://zone.ni.com/devzone/cda/tut/p/id/9195#51390_by_Date
If you're able, you might try using the TestStand 2010 beta. The behavior might have been fixed there.
06-21-2010 12:32 PM
I recommend trying out the TestStand 2010 beta if you are able to and are using the .NET adapter a lot.
-Doug