06-10-2019 10:02 AM
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?
Solved! Go to Solution.
06-10-2019 11:39 AM
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?
06-12-2019 02:56 AM - edited 06-12-2019 02:58 AM
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.
06-20-2019 01:11 PM
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.