Measurement Studio for .NET Languages

取消
显示结果 
搜索替代 
您的意思是: 

Network variable problem in 64 bit application

已解决!
转到解答

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 项奖励
11 条消息(共 34 条)
3,254 次查看

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 项奖励
12 条消息(共 34 条)
3,243 次查看

 

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 项奖励
13 条消息(共 34 条)
3,233 次查看

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 项奖励
14 条消息(共 34 条)
3,231 次查看

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

Thanks for your patience.

Regards.

0 项奖励
15 条消息(共 34 条)
3,213 次查看

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 项奖励
16 条消息(共 34 条)
3,198 次查看

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

Untitled.png

BR,

Ilkka

0 项奖励
17 条消息(共 34 条)
3,194 次查看

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 项奖励
18 条消息(共 34 条)
3,177 次查看

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

下载全部
0 项奖励
19 条消息(共 34 条)
3,169 次查看

Hi,

 

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

0 项奖励
20 条消息(共 34 条)
3,155 次查看