Close

NI Switches

Close

When your program finishes, terminate the session with the niSwitch Close VI or the niSwitch_close function.

The niSwitch Close VI or the niSwitch_close function is essential for freeing resources, including deallocating memory, destroying threads, and freeing operating system resources. Every session that you initialize must be closed, even if an error occurs during your program. Although NI does not recommend it, when debugging an application, you can abort execution before reaching the niSwitch Close VI or the niSwitch_close function.