04-21-2015 09:34 AM
Should passing references to an open TCP connection and Queue allow a VI called asyncronously to use them? It's fire and forget, but I'm getting an error saying both references are invalid. Ended up using a FGV to store both and that is working.
04-21-2015 12:08 PM
It's impossible to tell with some code, but generally it should work. The most likely reason for your problem is the automatic cleanup LV does. References are owned by the hierarchy they're created in (defined by the top level VI) and when that hierarchy goes idle, they're automatically destroyed. Most likely this is what's happening in your case.
04-21-2015 01:44 PM
Wouldn't the reference in the FGV suffer from the same fate?
04-21-2015 01:54 PM
There are certainly cases where an FGV would have the same problem. I don't know if yours is one of them, so I'll repeat my previous comment - impossible to tell without code.