Group: Forum Members
Posts: 33,
Visits: 88
|
Our application consists of a parent MDI form with a menu, each item in the menu corresponds to a child form. Each child form is a separate assembly, so when the menu item is clicked a child form is instantiated. Also each child form references/uses a business object (separate assembly) to populate grids and such. When first loading the application, the first child form that is opened takes alot longer to load than any subsequent child forms opened. I have tried using ngen.exe to create a native image and avoid the JIT compiling each time, this did not help. I suspect that it has to do with some initializations of the business object, like opening the database connection for the first time. Is there anyway to move these initializations like opening the database connection into the initialization of the parent application? Are there any other suggestions on how to eliminate the delay in the first child form opened?
Thanks,
Brad
|