01-22-2019 07:19 PM - edited 01-22-2019 07:23 PM
I am building a DLL for use with Analog Video Generator in C ++.
Previously Support said Labview 2018 is not supported, so we are working on Labview 2012. We have confirmed that it works without problems when it is made with Labview2012 application.
I built this into a DLL and tested it with the Visual Studio 2013 C ++ console application, but I get a problem getting Initialized to get the DeviceList. The vi used is mxVideoGenerator-pub Init.vi. It is located inside the Labview Test Project \ AnalogVideoGenerator folder in the attached Project folder. This folder is a copy of the folder created when installing Analog Video Generator3.1 of Ni.
LVTest.lvproj in the Labview Test Project folder After building the DLL file using the Labview project, when the Initialize function is called from the ConsoleApplication1.vcxproj C ++ project that is attached, the break will be caught inside the function (image 01)
It will exit from the hash function. However, if the heap corruption message (image 02) appears, and you continue to execute again, you will exit the function.
If you check the value of the deviceList variable passed as an argument, you can check that the value has been entered normally. (03 image)
I have tried to create a DLL using Labview 2012 One Btn Dialog, but I confirmed that it works normally.
Visual Studio 2010/2013/2017 all have the same symptoms and have been reinstalled.