I have found that loading of some forms in my winforms project take a while to load. I'm yet to find the cause for sure, but I suspect that thet loading of Infragistics tools is causing it. This is based on the following:
This leads me to beleive that loading the infragistics tools into memory for the first time is causing the problem.
So, my questions are, is my guess here likely to be correct (Infagstics tools loading is causing delays). And if so, what can I do about it?
Thanks.
What's likely happening here is that the Infragistics DLLs are getting compiled by the JIT compiler when you load a form that has a control that exists in an assembly that has not been loaded yet; you will get this behavior with any DLLs that are sufficiently large. What you could do is to simply create an object that exists in the assemblies that you will need to load, and do so at a time of your choosing.
-Matt
It has been suggested that I make a "Splash screen" for my application, which contains all of the infragistics controls I use, obscured by an image (so users cant see it). Is this what you are refering to? Is there a better way than this?
A Splash screen is not a bad idea. At some point or another, any assembly used in your application needs to be JITted. Using a spash screen basically just masks this delay. This is, in fact, one of the reasons that AppStylist has a splash screen.
Another option might be to use Ngen and pre-JIT the assemblies.
Hi Mike,
Is there a way to do that even with a ClickOnce app, or would I have to do the splash screen trick (with hidden infragistics controls) mentioned by another poster?
Thanks,~Kelly
I put an UltraGrid on a splash screen and covered it with a picturebox and it did seem to help the load time of the next ultragrid that was shown.
Hi Kelly,
I'm really not sure. I'm not all that familiar with ClickOnce or it's possible limitations.