Lifetime of Secondary Threads
- Updated2023-02-21
- 1 minute(s) read
Make sure to always terminate every thread other than the main thread before your program terminates. Otherwise, under Windows, the LabWindows/CVI Runtime cannot perform all of its cleanup operations. In addition, if your code is contained within a DLL and an application dynamically loads and unloads the DLL, the application might lose resources that were allocated in the threads you did not terminate.