03-28-2014 02:09 AM - edited 03-28-2014 02:11 AM
@teststand wrote:
Here's my VI's that opens and closes the netwrok adapters.
In close adapter vi, i was giving a chance to release void pointer explicitly through DS Dispose PTR.vi
you can find function prototype in vi description or in comments in block diagram.
If these two functions when called alone without anything else in your DLL already cause LabVIEW to be thrown in a misfit when you try to close it later, then I have very bad news for you: Your DLL needs a lot more debugging because it absolutely and certainly corrupts memory outside of its own dataspace and passed in parameters in one of these two functions.
And no, you do not use DS Dispose PTR in the close function. That should have all be done by your CloseAdapter() function.
Nothing you can do on the LabVIEW side will help that!