Time Consuming InitializeComponent

Posted by bheavican on 14-Dec-2009 16:37

Progress 10.2A02

I have a .NET form with approximately 200 controls.  This includes some controls within custom user controls within custom user controls.  According to the "PROFILER" it takes over 4 seconds to get through all of the initialize component methods.  I'm not sure what all to post here but I'm trying to get these questions answered.  Is this expected?  What can I do to make this faster?  I'll gladly post any information that would be helpful with solving my dilemma. TIA

All Replies

Posted by Admin on 14-Dec-2009 22:45

Is this first time loading in a session?

My experience is that loading the Infragistics Assemblies into memory takes some time, the first time an UltraGrid, a UltraToolbarsManager, etc. is loaded. Next time is much faster. Are you starting your AVM with -preloadCLR?

When it's the first time loading of the Infragistics Assemblies, you could preload them as well in a starter procedure:

DEFINE VARIABLE oGrid AS Infragistics.Win.UltraWinGrid.UltraGrid NO-UNDO .

oGrid = NEW Infragistics.Win.UltraGrid.UltraWinGrid () .

DELETE OBJECT oGrid.

And repeat that for a control of every Infragistics Assembly used.

Posted by bheavican on 15-Dec-2009 07:22

Thank Mike.  I'll give these a try and see what the results are.

This thread is closed