LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

When Visual Studio is installed, the DLL is executed. When I clear Visual Studio, it won't run.

When Visual Studio is installed, the DLL is executed.
When I clear Visual Studio, it won't run.
I think this error occurs because a DLL cannot be loaded. Is there any way to find out which DLL is the required DLL?

0 Kudos
Message 1 of 4
(1,780 Views)

If you're specifying the DLL yourself, then it should be obvious from your path/Call Library Function node call.

 

Therefore, I guess you mean some dependency is missing - you can use something like Depends.exe (https://www.dependencywalker.com/) or Dependencies (https://github.com/lucasg/Dependencies) to load a DLL (the one you know about, in your LabVIEW code) and then look at what that DLL is loading - see if you can work out which is missing etc.

 

I haven't used Dependencies, but note that Depends will recursively scan all of the dependencies, and this can take some time - so it probably hasn't crashed, just wait a bit longer (~minutes, maybe 10 etc... 😕 ).

Dependencies might be faster, because according to the documentation it by default only loads direct dependencies (I think), but you might need to change that to recursively search assuming the direct dependencies are satisfied.


GCentral
0 Kudos
Message 2 of 4
(1,724 Views)

If i install Visual Studio, the DLL will run, but if i delete it, the DLL will not run.

0 Kudos
Message 3 of 4
(1,719 Views)

Then you are creating a Debug Build of your DLL. Visual Studio C will link compiled code to different versions of the C Runtime Library, depending on if the project was compiled as Debug or Release build.

 

The Release Build depends on the official Redistributable Microsoft C Runtime Library for the Visual C version you used to compile the build.

 

The Debug Build depends on the special Debug Microsoft C Runtime Library that is installed through the normal Visual Studio installer. There is no download for just the Debug Microsoft C Runtime Library and in fact even if you found one, Microsoft's license agreement that you have to accept when installing Visual Studio specifically prohibits you to install anything of the Visual Studio components except the designated Redistributable components on any computer, without also installing a legal copy of Visual Studio on that computer.

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