Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

Slow loading of nationalinstruments.ui.windowsforms (16 seconds) in C# .NET

I created a simple application scattergraph (from NI Measurement Studio .Net toolbar) in C# in MS Visual Studio 2003.

When the app is run it takes the nationalinstruments.ui.windowsforms assembly to be loaded from the GAC about 16 seconds (on a Pentium 4 2.4Ghz machine), so the first time the graph appears the user has to wait a rather long time!

I'm new to C# and .Net but thought running NGen.exe may help this problem by creating a Native Images on the NI libraries to stop the JIT compiling. Unfortunately this did not seem to make any difference! Libraries which were run with Ngen where nationalinstruments.common, nationalinstruments.ui, nationalinstruments.ui.windowsforms.

Any suggestions of how to speed it up would be grateful?


I noticed the NI NationalInstruments.GraphFeatureTour.exe example takes the same amount of time to start up!
0 Kudos
Message 1 of 3
(3,661 Views)
I've been helping Zax with this problem, and have just discovered an interesting clue:

If I unplug the network cable from the back of my PC the graph loads much faster.

This tends to indicate the problem is connected to network traffic - either accross our LAN or the internet.

Could you describe whether the NI libraries try to connect over the internet as they are loaded?
Do they try to access any resources over the LAN (e.g. check for licenses or other instances of the application)?

Can you solve this problem asap, as the current slow load times make the graph component we have bought unusable.
0 Kudos
Message 2 of 3
(3,632 Views)
See my response here
Bilal Durrani
NI
0 Kudos
Message 3 of 3
(3,607 Views)