LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

DLL call works in DVE not exe

Solved!
Go to solution

Attached code is the beginnings of an interface with a larger system.  I am looking to receive data from the libdata_repeater_client.dll.  Looking to not have to pre-allocate memory in LabVIEW as we will not know the size of the incoming information. 

 

Using this article I was able to dereference from pointers.  Works fine, horray.  Until I compile it down to an exe. Returns a valid pointer but will not return anything from GetValueByPointer. 

 

Any other tricks to  try? 

 

 

0 Kudos
Message 1 of 4
(2,319 Views)

If you would backsave the VI and project to 2017 or before I could take a look at it. And where is your DLL and its prototypes?

Rolf Kalbermatter
My Blog
0 Kudos
Message 2 of 4
(2,298 Views)
Solution
Accepted by topic author t.kendall

GetValueByPointer tries to dynamically load lvimptsl.dll.

 

Make sure it's included in the build. It should be in the \data directory of the executable, but anywhere in the exe's path hierarchy should work.

 

I'd change the Signed pointer-sized integer to unsigned, to get rid of the coercion dots. Other then that it shouldn't matter at all.

0 Kudos
Message 3 of 4
(2,267 Views)

After reading this article I figured out how to get to the regular vi and from there modify my build to always include the required dll in the support directory. 

 

Thanks for your help. 

0 Kudos
Message 4 of 4
(2,219 Views)