Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

Cant convert double[] to double[*] in LV2013(64bit) built VI-assembly

Solved!
Go to solution

Hi,

having a problem passing double arrays to .Net assemblies built with Labview 2013 / 64bit VI's .

When referencing those dll's Visual Studio 2017 yells at me with an error "cannot convert from 'double[]' to 'double[*]' " .

 

Does anyone have a solution to circumvent this 'behaviour' ?

 

The same reference/call compiles without issue using the identical VI's but built with LabView 2018 or 2019(64bit both).

Need to get it running on LV2013(64bit) though.

 

Thanks,

Walter

0 Kudos
Message 1 of 3
(2,706 Views)

Looks like a known issue pre LV 2017 SP1:

https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z0000019LNISA2&l=de-AT

Currently trying to implement that workaround mentioned. Will report back as soon as I can confirm it working 🙂

cheers,

walter

0 Kudos
Message 2 of 3
(2,635 Views)
Solution
Accepted by topic author walter57

Solved.

Problem was "auto-generate binding redirects" in Visual Studio|Project|Property|Application page was on while for the project both versions of the assembly  (2013 and 2018 built) have been referenced !

https://docs.microsoft.com/en-us/dotnet/framework/configure-apps/how-to-enable-and-disable-automatic...

Switching off this option as well as removing multiple versions references of the assembly resolved the issue, thus the workaround with 2dim arrays posted above actually does its job for LV 2013 .Net Interop Assemblies 🙂

 

Cheers,

Walter

0 Kudos
Message 3 of 3
(2,597 Views)