LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

.LvClient type init exception

I made some(4).Net interop libraries in 16.02 x86.

I compiled a program in C# using .Net 4.5.1.

I first tried it was working well.

 

I assembled the libraries together and made 1 .Net DLL in Labview.

I used that Library and I know get the exception: LabViewInterops.LvClient type initialization made an exception:

Inner exception:

Missing Dependency in: D\\path\\Relay.vi: Library not found or failed to load: ULx_LV.dll":null

2 of the methods using this ULx_LV.dll, but it was working before.

 

Now I compile the program again which worked with different DLLs, and I get the same error.

The missing library is at the right place.

 

0 Kudos
Message 1 of 10
(3,569 Views)

Hi wapee,

 

that kind of error message is familiar to me, and I thought too the dependencies are at the right place, but were not there. If I understand well, you have some dll, and you created a wrapper dll that you use from Visual Studio. In my case the generated dll depended from packed libraries, and that lvblips were not at the excepted folder. Did you keep the original generated file structure? Could you describe (or attach a picture from) your project structure?

 

Balint

0 Kudos
Message 2 of 10
(3,542 Views)

"Missing Dependency in: D\\LabView-SMK\\WABCO\\WABCO Relay.vi: Library not found or failed to load: ULx_LV.dll":null"

 

For this dll the path is usually parent folder and \\data\\

It is there, also I made copy to the parent location D\\LabView-SMK\\WABCO\\

 

Something must have changed but I don't know what.

 

I attached the picture of source file.

Every VI is under the parent folder.

 

Thank you

 

 

0 Kudos
Message 3 of 10
(3,539 Views)

Could you take snapshots from (1) content of preview in build spec, (2) folder content (on disk) where you use the wrapper dll. You didn't answer, do you use that wrapped dll from VisualStudio?

 

Thanks, Balint

0 Kudos
Message 4 of 10
(3,531 Views)

Sorry, yes I use it in VS 2015.

Download All
0 Kudos
Message 5 of 10
(3,524 Views)
0 Kudos
Message 6 of 10
(3,523 Views)

Try to copy two dll in the same directory (as in the preview).

0 Kudos
Message 7 of 10
(3,511 Views)

So I made a new project in LV made a new build.

Made a reference in the VS project. Same error.

 

I made a new VS project I made a new reference for the labview dll.

Now it works.

 

Something is wrong in my VS project. Maybe the compiler gets wrong data about the dll's paths.

0 Kudos
Message 8 of 10
(3,499 Views)

So what I have seen, that the preview structure was different from your structure on disk. It was not a problem?

0 Kudos
Message 9 of 10
(3,495 Views)

When I made a new project in labview then I made the complete new build I could see the preview that everything was in place. Indeed it was not working in the VS project. There must be something wrong.

0 Kudos
Message 10 of 10
(3,492 Views)