01-07-2014 04:43 PM - edited 01-07-2014 05:01 PM
Hi,
I have a VB.NET application that works fine with measurement studio 2013. However, when I changed my build configuration to target "Any CPU" or "x64," I then get the folling warnings, but no runtime errors--YET.
Warning 1 Referenced assembly 'C:\Program Files (x86)\National Instruments\MeasurementStudioVS2012\DotNET\Assemblies\Current\NationalInstruments.Common.Native.dll' targets a different processor than the application. RGAController.UI
Warning 2 Referenced assembly 'C:\Program Files (x86)\National Instruments\MeasurementStudioVS2012\DotNET\Assemblies\Current\NationalInstruments.UI.Styles3D.dll' targets a different processor than the application. RGAController.UI
Is this normal? If not, how can I address the warnings? Please enlighten me.
(my processor is a 64-bit intel iCore7)
Thank you,
Andy Moyer
01-08-2014 09:03 AM
Andy,
The warning you are seeing happens because those two assemblies that are referenced are the 32-bit versions of the assemblies.
Here is a help topic that gives a lot more information about what is happening:
64-bit Support in Measurement Studio .NET Assemblies
http://zone.ni.com/reference/en-XX/help/372636F-01/mstudiowebhelp/html/64bitsupport/
Those particular DLLS are platform-specific, so they can’t easily be used with "Any CPU" selected. The recommendation to resolve that warning is just to change the target platform back to x86 (32-bit). In general, any 32-bit application can run on a 64-bit processor.
If you want to set the target to x64, you can replace the references in your project with references to the 64-bit versions of those two assemblies. They can be found here:
C:\Program Files (x86)\National Instruments\MeasurementStudioVS2012\DotNET\Assemblies (64-bit)\Current
K Johnson
Applications Engineer
National Instruments