Object Refferences And Speed ?

From: Jason Hawryluk (IHATESPAM_at_3gcomm.fr)
Date: 02/19/04


Date: Thu, 19 Feb 2004 13:19:59 +0100

I am doing some refactoring on a VB app *g* this app uses Usercontrols
extensivly, each usercontrol loads about 4 com class objects stored in
different dll's. For example cError,cUtil etc..

These are Declared directly in the usercontrol. i.e.

Dim o_Error as cError
Dim o_Util as cUtil

Etc..

I was wondering is it slower to load them if I make a helper dll I.E.

Dim o_Helper as cHelper

And when i need these classes, load on demand.

o_Helper.o_Error.RaiseError(etc....)

This allows me to Refference the different dll's only in the helper and not
all the Usercontrols. The usercontrol only refferences the helper. I i
change any of the dll's i only need toredeploy the helper dll not all the
Usercontrols.

I hope you get my point if not i will try to elaborate.. i suppose that this
is delegation (correct me if i am wrong.)

Thanks

Jason



Relevant Pages

  • Re: Ajax TabContainer behaviour like Windows TabControl?
    ... Database while Page load. ... There is a TabContainer control below the Menu Control. ... Now i want to add corresponding UserControl dynamically when user clicks on ... clicks any new MenuItem as when menuitem click start postback. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Ajax TabContainer behaviour like Windows TabControl?
    ... Database while Page load. ... There is a TabContainer control below the Menu Control. ... Now i want to add corresponding UserControl dynamically when user clicks on ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Need some info about the Load event of Forms and Usercontrols
    ... Does it get called for each ShowDialog? ... What's bothering me is that the second time, the load on the usercontrol is ... And the form load calls a usercontrol method. ... UC's Load event was run which reinitialized things. ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Reload user control?
    ... What I mean is that each time you load usecontrol dynamically depending on ... >> You can dynamally load usercontrol by UserControl userControl = ... >> HTH ... >>>picked up by another user control. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Dynamically Loading a UserControl
    ... only one user control is being rendered. ... SelectedIndexChanged event do a Server.Transfer and apend a QueryString to ... Requestquery string to know which control to load. ... > keeping track of what UserControl to load upon a page being posted back. ...
    (microsoft.public.dotnet.framework.aspnet)