Hi,
I we are having a problem with the UltraComboEditor, the first time i drop down a combo it takes from 3 to 5 seconds on my machine (a quad core) and like 10 in other test machines. It hangs the UI so something is running in the main thread.
It seems to happen only the first time you dropdown any combo inside the application and its about the same time with 3 or 3 thousand items.The slowdown is somewhere between BeforeDropDown and AfterDropDown.
I guess it is loading some static resources for all the dropdowns but i would like it to do that on my application pre-load method. Any guess what it may be doing? And if i am true how can i force it to preload those resources on demand?
I know it may seem trivial but it is not, we are working hard to have the best user-experience possible and those things are odd.We are using netadvantage 10.3
[Edit] We are compiling targeting x86 platform due to the debugger issues on a 64bit system. [/Edit]
Thanks in advance.Aridane Álamo.
Hi Aridane,
If the number of items in the combo does not matter and dropping down any UltraComboEditor the first time removes the delay from all other UltraComboEditors in the application, then it sounds like the delay is caused by the JITting of the assembly. The first time your application references an assembly, the DotNet framework loads it into memory and caches it for future use.
The way to get around that would be to pre-JIT the assembly. You could do that using nGen.exe. If you search these forums or the web in general for pre-jit and/or ngen, there are lots of resources to help you with this.
Hi Mike,
I tough it may be that but pre-JITted only the assembly containing the control, (Infragistics2.Win.UltraWinEditors.v10.3) will try to do it with all the UltraWinEditors referenced assemblies.
Thanks for reply.
Hello Aridane,
Could you please provide a sample project showing this behavior? We can use the sample to narrow down the cause of the long load times. Thanks.
Hello,
Do you require any further assistance with this issue?
Sorry, i was in another project and couldn't try your solution until now.
It works, i prepared all the infragistics assemblies in Main and now loads much faster. Also optimized some code that needed refactoring.
The long loading time was caused by the JIT but also we where instantiating more than one spell-checker in the same form programatically.
Thanks for the help, problem solved.