Lifetime of Child Threads

You should always make every thread other than the main thread terminate before your program terminates. Otherwise, under Windows, the LabWindows/CVI Run-time Engine 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.