Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

Visual Studio 2010 C++ project: Controls from Measurement Studio 9.1.40.204 crash windows 7 applications

My development computer is a Windows XP SP3 system with Visual Studio 2010.  When I attempt to compile an application with only a Measurement Studio control (in this case an LED control) onto a simple form (created through the Visual Studio CLR form application wizard) I get an executable that will run just fine on any Windows XP machine.  But when attempting to run on a Windows 7 machine (x86 and 64) I'm getting the exception:

 

Application: Chirp.exe Framework Version: v4.0.30319 Description: The process was terminated due to an unhandled exception. Exception Info: System.IO.FileNotFoundException Stack: at NationalInstruments.Restricted.LicenseBase.RunTimeCheck(System.ComponentModel.LicenseContext, System.Type, System.Object) at NationalInstruments.Restricted.LicenseProviderBase.GetLicense(System.ComponentModel.LicenseContext, System.Type, System.Object, Boolean) at System.ComponentModel.LicenseManager.ValidateInternalRecursive(System.ComponentModel.LicenseContext, System.Type, System.Object, Boolean, System.ComponentModel.License ByRef, System.String ByRef) at System.ComponentModel.LicenseManager.Validate(System.Type, System.Object) at NationalInstruments.UI.WindowsForms.ScatterGraph..ctor() at Chirp.ChirpMain.InitializeComponent() at Chirp.ChirpMain..ctor() at <Module>.main(System.String[])

 

It appears to be a licensing issue and I have already placed

lc.exe /target:"$(TargetFileName)" /complist:"$(ProjectDir)licenses.licx"

in my Pre-Build events and

$(ProjectDir)$(TargetFileName).licenses

In my "Embed Managed Resource File" property.

 

Development System:

Windows XP SP3 Core Duo 2

.NET 4

Visual Studio 2010

Mesurement Studio 9 with latest updates.

0 Kudos
Message 1 of 3
(6,129 Views)

I'm sorry in this case I was attempting to use a ScatterGraph.

0 Kudos
Message 2 of 3
(6,122 Views)

Hi Mry,

 

Ensure that you follow the directions in these 2 KBs.  Including the merge module on the Windows 7 install and running the installation as administrator may be a good fix for you problem.

 

Distributing Measurement Studio Applications in Microsoft Visual Studio 2003/2005/2008/2010

 

Why Did My Measurement Studio Distribution Not Fully Install In Windows 7?

Justin D
Applications Engineer
National Instruments
http://www.ni.com/support/
0 Kudos
Message 3 of 3
(6,109 Views)