Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

Strange License Problem With MS 8.01 for VS2005

Hi,
 
I recently upgraded to MS8.01 for VS2005.  If I place a control(s) on a form, (a LED for example) the application runs ok.
If I create a control array at runtime of type LED, I get a license error. (See source code below).
 
Any ideas?
 
Curt
 

Private

Leds(143) As Led

cPoint.X = 24

cPoint.Y = 54

'cSize.Height + LedOffset

cSize.Width = 18

cSize.Height = 18

For j = 0 To 71 '143

Leds(j) =

New Led

Leds(j).Name =

"Led" & j

Leds(j).Tag = j

Leds(j).LedStyle = NationalInstruments.UI.LedStyle.Round3D

Leds(j).Location = cPoint

Leds(j).Size = cSize

cPoint.X = cPoint.X + 36

If (j + 1) Mod 12 = 0 Then

cPoint.X = 24

cPoint.Y = cPoint.Y + 36

End If

TabPage1.Controls.Add(Leds(j))

Leds(j).Visible =

True

Next

AddText(TabPage1)

AddHandlers(TabPage1)

 
0 Kudos
Message 1 of 4
(3,938 Views)
Hi Curt,

What version of Measurement Studio did you upgrade from? Was the code you attached created from scratch or is it a piece of code that was working with your previous version of Measurement Studio prior to the upgrade? Were you ever using the Measurement Studio 8.01 evaluation version prior to your upgrade?

Instead of creating an array at runtime, are you able to create a single new LED control at runtime without receiving this error?

I'd really appreciate it if you could provide me this information so I have a better understanding of what's going on.
Manooch H.
National Instruments
0 Kudos
Message 2 of 4
(3,916 Views)
Hello Curt C,

If you go to the Project menu, and then select "Show All Files", do you see a licenses.licx file under the "My Project" tree?  If so, does this file contain an entry for NationalInstruments.UI.WindowsForms.Led anywhere?  If the answer is no to either of these questions, the first thing I would try is going to the Measurement Studio menu, and selecting "Refresh Project License File".  If this fails to correct the licensing issue your seeing, I would examine the Measurment Studio help topic entitled "Licensing Measurement Studio .NET Class Libraries with Measurement Studio Integrated Tools".  This very helpful document explains how to troubleshoot most licensing exceptions, and has additional steps to try if refreshing the license file does not work.  Let us know how it goes!

NickB
National Instruments
0 Kudos
Message 3 of 4
(3,904 Views)

Manooch,

 

I upgraded from a MS 6.0.5.  The code I wrote is an attempt to replicate the control arrays used in an old VB6 project that I am upgrading to .NET.  No, I did not install the demo version of MS 8.01.  The license error doesn’t appear if I place an LED control on the form at design time and then run the app.  It also doesn’t appear anymore even after I removed the LED control from the form.

 

I checked the licx file as Nick B suggested and the entry to the NationalInstruments.UI.WindowsForms.Led was included, but I checked that after I had placed a LED control on the form.

 

The app runs ok now

 

Thanks for your help

 

Curt

0 Kudos
Message 4 of 4
(3,876 Views)