11-13-2006 01:37 PM
11-14-2006 02:26 PM
The CDotNetHandle handles in the CVI generated wrappers are specific to the CVI .NET library. TestStand .NET references (handles) are specific to TestStand and cannot be passed to the CVI wrapper functions. The crash is due to this - passing an invalid handle to CVI.
If you really need to interoperate .NET object between TestStand and CVI, you should use some kind of .NET remoting mechanism to be able to access the object from multiple .NET AppDomains (application domains). This requires that the underlying .NET object is remotable and is not possible for most .NET objects - also, .NET remoting is an advanced and involved topic. Instead, I would recommend keeping your .NET client code entirely in TestStand or entirely in CVI, and call the appropriate environment from the other when you need to call .NET.
11-14-2006 03:06 PM
11-14-2006 04:11 PM - edited 11-14-2006 04:11 PM
Message Edited by S Shelley on 11-14-2006 04:14 PM