01-21-2010 08:55 AM
Hello,
I've seen this error posted by CVI users, but I wans't able to find no .NET users of this so I'm posting a new thread.
I have a custom type I've created.
it goes like this in C#:
public struct TS_NumericInfo {
int NumericVal;
string StringVal;
}
I'm using this struct as an entry for a public property in my assembly.
I have created a TestStand type based on this stuct in a *.ini file I use for types.
The type that TS has created for me is a container type.
The problem is as follows.
When I use this Container/Struct to pass data to the DLL everything is fine.
I ran into trouble when I changed the property to be an array of TS_NumericInfo elements.
I've passed an Array of the containers down to my assembly.
I've debugged inside the set propety code and the array is passed fine, I can read the values.
When I step out of my .NET adapter code, and TS resumes control over the sequence I get this error:
No details available.
-17502; System Level Exception.
Please help me understand and fix this, as I'm puzzled.
I'm using TS 4.2 , VS 2008 ( I'm not using any measurement studio stuff in this assembly ), XP SP3.
Any help is greatly appriciated,
Maciej
01-22-2010 04:46 AM
Hi,
I've done some additional digging, but I still do not know how to remedy this issue, and I do not undestand how to handle it.
I've isolated the problem I'm describing.
The sequence and dll code is in the attachment.
The seq file is in the \bin\ direcory
Additionally I'm sending the screenshot of the exception I got
when I had enabled the break on exception option in my Visual Studio.
The exception occurs only when I pass down the array, the single container works with no problems whatsoever.
Thank you in advance for any help in resolving this!
Regards,
Maciej
01-22-2010 10:31 AM
MacieJ -
I believe this to be a problem with the .NET adapter and have reported the behavior to R&D (203825) to be fixed in a future version of TestStand. Thanks for bringing this to our attention. Keep an eye out for this ID number in the Bug Fix List or Known Issues List of future TestStand releases.
The problem only seems to occur for properties. If you pass an array of structs into a method call instead, it works. Therefore as a workaround, you could use get and set methods instead of a property.
Hope this helps.
01-22-2010 11:07 AM
Thanks a lot for the prompt response and the workaround suggestion 😉
I knew I could count on you;)
I will use a method in this case luckily I'm the DLL developer so I should be able to workaround this!
Many thanks!