Hello,
I have a problem with imported dlls in VEE. I have developed a test program, test.vee, which imports 2 dlls to control a wifi device and a wifi test instrument.
If an error occurs in the external routine and the routine fails, VEE locks some resources and keeps the connection to instrument. How can I make VEE to release the resources and terminate the connection.
I start the instrument from another instance of the same program(test.vee) and it works as normal. If I close and open the failed program it will also work. So, I guess that although the program is not hanging, it is in a state that needs a reset to come out from.
The same problem happens if I stop the test program in the middle of running by pressing stop button. Then to start again will fail until I close and reopen VEE.
I appreciate any advice. Thanks
Best Regards
Sima
Not all DLLs are the same - you didn't give us any clue as to what type of DLL or how you're importing it! If you are importing it as a compiled library ( unlikely for a modern API ) then you can use Device -> Delete Library VEE object. For a .NET object, I typically set a local variable to the top-level object. In that case you can use Data -> Variable -> Delete Variable to delete the reference to the object.