Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

System.StackOverflowException occured in NationalInstruments.UI.dll

Hi,

 

I'm using Windows XP SP3 with Visual Studio 2010 prof. SP1 and Measurement Studio 2012.

My Application run on my other PC without any Problems, now I changed on a new PC. If I load my Project in Visual Studio and start it, I get an Exception in the InitializeComponent-Method of my Form:

 

this.wfpSinus = new NationalInstruments.UI.WaveformPlot();

 

-> StackOverflowException was unhandled

An unhandled exception of type 'System.StackOverflowException' occurred in NationalInstruments.UI.dll

 

If I remove the WaveformPlot from my GUI the Program runns without any Problem. If add the WaveformPlot again, I have the same Problem again.

I also have LEDs and Switches on my GUI without any Problem. If I add a Tank, I have the same Problem like WaveformPlot.

 

0 Kudos
Message 1 of 7
(6,613 Views)

Hi Chris, does the exception also occur when you create a new WPF project from scratch?

 

0 Kudos
Message 2 of 7
(6,584 Views)

No!

 

I forgot to say: It's a WindowsForms-Project and no WPF!

 

But if I create a new project from scratch (WindowsForms), it works.

 

Why does my existing project doesn't work?

0 Kudos
Message 3 of 7
(6,580 Views)

Of what class is wfpSinus? What happens if you newly define it with the following?

 

NationalInstruments.UI.WaveformPlot wfpSinus;

 

 

0 Kudos
Message 4 of 7
(6,574 Views)

I think I don't know what you mean.

 

I have this situation:

[...]
private NationalInstruments.UI.WaveformPlot wfpSinus;
[...]
private void InitializeComponent()
{
    this.wfpSinus = new NationalInstruments.UI.WaveformPlot();
    [...]
}
[...]

 

the program throws an exception at "this.wfpSinus = new NationalInstruments.UI.WaveformPlot();"

If I delete the rows and rewrite the folowing code:

 

[...]
private NationalInstruments.UI.WaveformPlot wfpSinus1;
[...]
private void InitializeComponent()
{
    this.wfpSinus1 = new NationalInstruments.UI.WaveformPlot();
    [...]
}
[...]

 the program also throws an exception

0 Kudos
Message 5 of 7
(6,568 Views)

this.wfpSinus is an object. An object has a class and must come from somewhere. I would like to know if you are aware what class it has and where the object is created.

0 Kudos
Message 6 of 7
(6,564 Views)

Yes I know what class it has and where the object is created.

0 Kudos
Message 7 of 7
(6,550 Views)