Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

Network variable problem in 64 bit application

Solved!
Go to solution

Hi,

 

 
I use only the libraries from Measurement Studio 2015. That is the "newest" what NI has released. The Visual Studio version is not an issue.. It is needed also some libraries from Visual Studio 2013 to put the SW working so I have also VS 2013 in the development computer.. Officially Measurement Studio supports only VS 2013. 

BR,
Ilkka
0 Kudos
Message 11 of 34
(2,459 Views)

Hi,

Will send us the code that you are facing the problem on, we would like to replicate the issue on a PC.

Regards

0 Kudos
Message 12 of 34
(2,448 Views)

 

Hi,

I made a new test application by using Visual Studio 2013. If you compile and run that in 64 bit mode there is the same error. But in 32 bit mode it is OK. Please test the attached application.

 

error.png

0 Kudos
Message 13 of 34
(2,438 Views)

Here is an another test. I copied ninetv.dll into the bin directory. So it is found now but in a wrong format:

err3.png

 

0 Kudos
Message 14 of 34
(2,436 Views)

Hi, We just escalated this issue, expecting to have the answer soon.

Thanks for your patience.

Regards.

0 Kudos
Message 15 of 34
(2,418 Views)

The last error message indicates that there is a mismatch issue, namely a 64-bit process is trying to call into a 32-bit DLL. In Measurement Studio 2015 the NationalInstruments.NetworkVariable.dll works for both 32 and 64-bit processes and We only have one copy of ninetv.dll which should also work for both.

We see that the referenced documentation which indicates in older versions did have a separate 64-bit implementation, ninetv64.dll. It may be possible that you had an old version on your system that is 32-bit specific which could cause this problem.

Can you check the version of ninetv.dll on your system?

Note that since ninetv.dll is shared by all NI products using Network Variables that it should be the version of the highest NI software on your system - in our case that's CVI 2017. The version you should download must be at least a 15.x version (since you use MStudio 2015 on your system).


Finally, is this error happening on your development system, deployment system, or both?

0 Kudos
Message 16 of 34
(2,403 Views)

Hi, here is the ninetv.dll what is used. Version 15.0.1.239:

Untitled.png

BR,

Ilkka

0 Kudos
Message 17 of 34
(2,399 Views)

Can you please answer the following two questions:

  • Is this error happening on your development system, deployment system, or both?
  • Can we get a fusion log from your system?
    • A fusion log will show us detailed information about how the .NET run-time is locating and loading dependencies, which hopefully will indicate why this assembly load is failing.
    • Also, disable fusion logging after sending it to us - if you leave it on the fusion logs can grow quite big.

Best regards

Basel

0 Kudos
Message 18 of 34
(2,382 Views)

Hi,

 

  1. Yes, the error is happening in both systems.
  2.  The Fusion logs are attached in this message. There are two cases:
    • Case 1: The ninetv.dll file is not copied in bin directory
    • Case 2: The ninetv.dll file is copied in the bin directory

I used the sample Program posted into this thread before. Not our original software but the results are the same.

 

BR,

Ilkka

Download All
0 Kudos
Message 19 of 34
(2,374 Views)

Hi,

 

Can you please, verify which location you are pulling ninetv.dll from? Put the whole path or screen shot it.
Thanks.
Basel

0 Kudos
Message 20 of 34
(2,360 Views)