Measurement Studio for .NET Languages

cancelar
Mostrando resultados para 
Pesquisar então 
Você quer dizer: 

Network variable problem in 64 bit application

Resolvido!
Ir para a solução

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
Mensagem 11 de 34
3.144Exibições

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
Mensagem 12 de 34
3.133Exibições

 

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
Mensagem 13 de 34
3.123Exibições

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
Mensagem 14 de 34
3.121Exibições

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

Thanks for your patience.

Regards.

0 Kudos
Mensagem 15 de 34
3.103Exibições

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
Mensagem 16 de 34
3.088Exibições

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

Untitled.png

BR,

Ilkka

0 Kudos
Mensagem 17 de 34
3.084Exibições

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
Mensagem 18 de 34
3.067Exibições

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

Baixar tudo
0 Kudos
Mensagem 19 de 34
3.059Exibições

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
Mensagem 20 de 34
3.045Exibições