Quantcast
Channel: Measurement Studio for .NET Languages topics
Viewing all articles
Browse latest Browse all 1999

NI4882 TypeInitializationException

$
0
0

I recently upgraded the NI488.2 driver from version 3.0.2 to 16.0. Now when compiling my program for x64, I receive the following exception when trying to construct a NationalInstruments.NI4882.Device object:

 

System.TypeInitializationException "The type initializer for 'NationalInstruments.NI4882.Internal.GpibDll' threw an exception."

 

with an inner exception of:

 

System.OverflowException "Arithmetic operation resulted in an overflow."

 

This problem only happens when I compile for x64, not for 32-bit. I don't find any x64 specific dll's in the NI installation directory.

 


Viewing all articles
Browse latest Browse all 1999

Trending Articles