Herbert -
The session manager that shipped with TestStand 2.0.1 allows you to create a custom session. The "Instrument Session Types" topic in the help describes the following:
Custom Sessions - Use a custom session to create a data container object that shares ActiveX objects you create or other data between software components you write. Use the Attach and Get methods to attach data to and retrieve data from a session. A custom session does not initialize or close and does not own an instrument handle. The data you share with a custom session does not have to be instrumentation related. You can create a custom session with any name you request. You must always prefix custom session names with "CUSTOM::"
So if you attach an NI-CAN handle or reference
to the custom session, any thread can have access to that handle. If the handle is activeX based it will be released automatically. If the handle is not active-X based, you will have to explicitly close or release the handle so that you do not loose memory.
Hope this helps...
Scott Richardson
Scott Richardson
https://testeract.com