Error -1967362020 Using Shared Variables in LabVIEW

Updated Mar 26, 2024

Reported In

Software

  • LabVIEW

Issue Details

Occasionally, the error -1967362020 occurs right after running my LabVIEW code. How do I fix that?

Error -1967362020 occurred at an unidentified location
Possible reason(s):
OS and Network Services: (Hex 0x8ABC701C) The provided refnum is invalid.


image.png

Solution

The error happens when you don't properly close the connection to a shared variable.
To resolve the issue, incorporate the Close Variable Connection.vi at the end of the code and refrain from aborting the VI execution; instead shut it down programmatically.