LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

dll rashing LabVIEW


@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!

Rolf Kalbermatter  My Blog
DEMO, Electronic and Mechanical Support department, room 36.LB00.390
0 Kudos
Message 11 of 11
(557 Views)