Hi Rluo,
It sounds very reasonable that your errors are caused by threads that haven't been properly closed. Therefore, always make sure not to stop your VI using the 'Abort' button, since this can end the execution within a DLL call without cleaning up/closing open references. Instead, use a stop button to end your VI gracefully. If necessary, use an additional DLL call to clear all references/threads just before stopping the VI.
Have fun!
Message Edited by Philip C. on 04-26-2005 11:07 PM
- Philip Courtois, Thinkbot Solutions