Quantcast
Channel: LabVIEW topics
Viewing all articles
Browse latest Browse all 69019

dll rashing LabVIEW

$
0
0

Hi,

 

I am encountering a strange behaviour of LabVIEW when calling dll.

I've a function in dll which returns the netwrok adapter handler through void pointer, the prototype of the function is

void *OpenAdapter( char *AdapterName);

Now this handle or the void pointer will be used by other dll function such as int CloseAdapter(void *AdapterHandle);

 

The way I a handling sharing of void pointer between functions is through Unsigned Int in labVIEW. I ams stroing the void pointer (rerutned from OpenAdapter, in Call Library node) as Singed Integer and passing the same void pointer to CloseAdapter(void *AdapterHandle); as Singed Int in Call Library Node.

 

Is it the right approach to deal with functions dealing with void pointers. it seems my application (uses those void pointers) works fine till closes LabVIEW. The moment I close LabVIEW, it crahses.

 

Can anyone please help me in getting rid of this error.

 

Thanks in Advance

 

 

 

 


Viewing all articles
Browse latest Browse all 69019

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>