07-17-2006 01:52 PM
07-18-2006 03:43 AM
Hello!
I am not sure what you are trying to achieve and how you current setup look like such as version of TestStand, which adapter you are using (do you call a LabVIEW VI that in turn calls a DLL or do you use the C/C++ adapter directly for an example), which programming environment you are using among other things.
Do you have any code in your DllMain function in the DLL_PROCESS_ATTACH and/or DLL_PROCESS_DETACH cases? Most of the functions you can include in these sections pertain to memory and thread management only and if you then would include functions performing other operations in the DLL_PROCESS_ATTACH and/or DLL_PROCESS_DETACH sections, applications making calls to the DLL might behave unpredictably.
Do not use the attach and detach sections to open, configure, or close various interfaces (GPIB,
07-18-2006 05:48 AM
07-18-2006 06:09 AM
Hello!
Please look at these links since they talk about similar issues:
DLL unload problem
http://forums.ni.com/ni/board/message?board.id=330&message.id=5537&requireLogin=False
How to get TS to release USB ownership when unload DLL step
http://forums.ni.com/ni/board/message?board.id=330&message.id=5835&requireLogin=False
When it comes to stack sizes I don't know, so hopefully someone else gan provide some insight!
07-18-2006 08:27 AM