02-01-2013 06:39 AM
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.
02-07-2013 10:10 AM
Hi Chris, does the exception also occur when you create a new WPF project from scratch?
02-08-2013 02:20 AM
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?
02-08-2013 08:24 AM
Of what class is wfpSinus? What happens if you newly define it with the following?
NationalInstruments.UI.WaveformPlot wfpSinus;
02-08-2013 08:43 AM
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
02-08-2013 09:19 AM
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.
02-12-2013 12:08 AM
Yes I know what class it has and where the object is created.