Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

Controls on Winform Vanish first then the form closes

I created a WinForms app within VS.NET 2003 using C++ and Measurement Studio controls.  When I go to close the application there is visible lag because the measurement studio controls disappear first and then the form closes.  Does anyone know what causes this effect?  And how to get rid of it.  I mean this never happened to using Measurement Studio within VS 6.0.

Thanks
0 Kudos
Message 1 of 11
(5,067 Views)

Hello mtd32610,

Thanks for posting on the NI discussion forums.  When I create a Windows Application in VS.NET 2003 with Measurement Studio 8.1.2 controls on the Form, I do not experience any visible lag when closing the form.  Perhaps the Measurement Studio controls are being wiped before the Form disappears, but it is fast enough on my machine that it appears to be instantaneous to the human eye.

 

What version of Measurement Studio do you have installed?  Do you have a lot of applications installed on your machine?  If so, do any of those applications appear to be running slow as well?  Do you still have VS 6.0 installed on your machine?  If so, does it still close Forms quickly that have Measurement Studio controls?  Also, are you running any other processor-intensive applications in the background while closing your WinForms application?

Chris_G
Sr Test Engineer
Medtronic, Inc.
0 Kudos
Message 2 of 11
(5,041 Views)
Chris_G,
 
   I am not running anything to process intensive on my pc at all.  I do still have VS 6.0 on my machine but I cannot
0 Kudos
Message 3 of 11
(5,033 Views)
Chris_G,
 
   I am not running anything to process intensive on my pc at all.  I do still have VS 6.0 on my machine but I cannot
0 Kudos
Message 4 of 11
(5,033 Views)
Chris_G,
  
   I am not running anything to process intensive on my pc at all.  I do still have VS 6.0 on my machine but I cannot
0 Kudos
Message 5 of 11
(5,033 Views)
Chris_G,
   
   I am not running anything to process intensive on my pc at all.  I do still have VS 6.0 on my machine but I cannot
0 Kudos
Message 6 of 11
(5,033 Views)
Chris_G,
    
   I am not running anything to process intensive on my pc at all.  I do still have VS 6.0 on my machine but I cannot
0 Kudos
Message 7 of 11
(5,033 Views)

Chris_G,

      Please ignore any repetative posts. 

      It seems like the contrlols are getting destroyed as the form closes, it is just not something that is usually viewable by the naked eye.  I believe my pc is up to date enough not to be experiencing this problem.  I am currently using Measurement Studio 8.1.11.377.  I am not running to many apps on my machine.  I have VS 6.0 but forms don't exist in that version, they only are created within  a .NET version.  The only thing I know that stand out is the control I am using are not part of the components toolbox when I open VS .ET2003.  They are in the own tab and so I believe are wrapped versions of the controls.  I believe this article explains how I am using the controls http://zone.ni.com/devzone/cda/tut/p/id/4587.  I wonder if this can be an issue.

0 Kudos
Message 8 of 11
(5,031 Views)

Hello mtd32610,

The Measurement Studio controls do not appear in the toolbox when Visual Studio was installed after Measurement Studio.  First, I would rerun the installer for Measurement Studio, and make sure to install support for Visual Studio 2003 (it may be on a separate disc) when you do this.  I am not sure if this will lead to the solution, but it should place the Measurement Studio components in your toolbox at the very least.

When you say that the controls get “destroyed as the form closes”, but that it is not “usually viewable by the naked eye”, then how are you sure that the controls are being wiped off of the Form before it closes?  I guess I am having difficulties fully understanding the issue you are experiencing.  I originally thought that the application Form was taking a long time to close, and that you suspected the Measurement Studio controls to be the culprit because you could see them disappear before the Form closed.  Is that accurate?

Also, if you create an application without Measurement Studio controls, but with windows control components, do you see the same behavior?

Please try the re-install of Measurement Studio and let me know if that solves the issue.

Chris_G
Sr Test Engineer
Medtronic, Inc.
0 Kudos
Message 9 of 11
(5,003 Views)

Chris_G

  Sorry for any confusion.  When the Form closes there is lag because the Measurement Studio controls on the form disappear and then the Form itself closes.  Now the form has other normal WinForm controls that do not act like this.

0 Kudos
Message 10 of 11
(5,000 Views)