03-03-2008 09:09 AM
03-03-2008 09:38 AM
03-03-2008 10:29 AM
Jonathan,
Thanks for the reply. The project you have is not an example project , it is the actual project I have been working on for several months. It is not watered down either. What you have is the same code I working on.
However, “testForm” is not part of my project. I added it to the beginning of the code to simplify the problem. All of the code before the statement: WKLD1::testForm^ myTestForm = gcnew WKLD1::testForm; was generated by the project wizard.
You are right about solving the issue. If the code compiles and runs for you, it makes it more difficult to find the problem. Are you using Visual Studio 2005, Service Pack 1?
When I run the project under the debugger, the CPU hangs on the statement: this->xAxis1 = (gcnew NationalInstruments::UI::XAxis()); when testForm is instantiated. When running without the debugger, the application becomes “Not Responding”.
Here are answers to you questions.
1) The problem started when I installed MS 8.1.2 and integrated it into my project. I did not have a prior version installed. However, Labview 7 was installed.
2) The code is not watered down
3) I have only added NI controls (waveFormGraph and scatterGraph). Originally I had three waveFormGraphs on the form and they worked correctly. When I switched them to scatterGraphs the problem started, and I was unable to revert back to waveFormGraphs.
4) I will try moving the instantiation of myTestForm ahead of the wizard generated code.
5) I will see if I can diff the code.
Some other points of interest.
I went through the “Walkthrough: Creating a MS Application with Windows Form Controls and Analysis in VS 2005” on page 5-34 in the Users Manual. I did this for familiarization with MS. This project works correctly. However, at some point an error popped up on its own in the Form Designer. It stated that the Minimum value is equal to the Maximum value. I cannot get this error to go away. I get the impression that something got corrupted. So I completely re-installed MS (twice) which made no difference.
I created a new, empty, VS .NET project and added a Windows form with scatterGraphs. It compiles and runs fine.
03-03-2008 10:54 AM
03-03-2008 01:10 PM
Jonathan,
I think we have a breakthrougjh. I installed .NET Framework 2.0 SP1 and the project now compiles and runs without hanging. I am cautiously optimistic, as you know these type of problems can come back from the dead. I am going to roll back my code to remove the testForm. Then I will add the frequency domain analysis and ploting that I was originally working on. If all goes well, I will be a happy man and this matter will be closed. If success prevails, this forum thread should be useful to anyone who encounters the same behavior.
Matt
03-04-2008 01:22 PM