Just a thought, but I am inheriting the UnitOfWorkApplication in my
Global.asax.  I'm not thinking this is the problem, but we do have to
force the UnitOfWork to start in the Application_Start as we need it
running for a custom urlrewriter we have.

We do dispose of the UnitOfWork.

On Dec 19, 4:51 pm, "johnpoll...@googlemail.com"
<johnpoll...@googlemail.com> wrote:
> Sorry forgot to add about Windsor.  Yes we are using Windsor
> integration.
>
> We are also using the following Windsor.boo configuration
>
> import System.Reflection
> import Castle.MonoRail.Framework
> import Castle.MonoRail.WindsorExtension
> import Rhino.Commons.ForTesting from Rhino.Commons.NHibernate
> import Rhino.Commons.ForTesting from Rhino.Commons.ActiveRecord
>
> Facility("monorail", MonoRailFacility)
>
> webAsm = Assembly.Load("SJP.Medical.Web")
> viewCompsAsm = Assembly.Load("Castle.MonoRail.ViewComponents")
> activeRecordAsm = (Assembly.Load("SJP.Medical.Models"),Assembly.Load
> ("CMSModels"))
>
> for type in webAsm.GetTypes():
>         if typeof(Controller).IsAssignableFrom(type):
>                 Component(type.Name, type)
>
> for type in viewCompsAsm.GetTypes():
>         if typeof(ViewComponent).IsAssignableFrom(type):
>                 Component(type.Name, type)
>
> Component("active_record_repository", IRepository, ARRepository)
> Component("active_record_unit_of_work",
>         IUnitOfWorkFactory,
>         ActiveRecordUnitOfWorkFactory,
>         assemblies: activeRecordAsm)
>
> On Dec 19, 4:32 pm, "Ben Lovell" <benjamin.lov...@gmail.com> wrote:
>
> > Can't say I've ever noticed this in the many apps I've worked on. Are your
> > components being resolved through Windsor? Are they holding onto resources?
>
> > Benhttp://benl.wordpress.com/
>
> > On Fri, Dec 19, 2008 at 4:25 PM, johnpoll...@googlemail.com <
>
> > johnpoll...@googlemail.com> wrote:
>
> > > Hi,
>
> > > We have our own ViewComponent which inherits from the
> > > ViewComponentEx.  We have noticed our asp_net.exe memory usage
> > > creeping up over a period of time whilst a site is live.  We have
> > > removed all usages of the viewcomponent and the memory usage stops
> > > rising.  We've also gone as far as having an empty Render function in
> > > our viewcomponent and the memory usage keeps rising.
>
> > > Other things we tried include using the GridComponent and the memory
> > > still rises.
>
> > > We are using the Castle, Rhino, NHibernate trunk combo.
>
> > > Has anyone else noticed this ever?
>
> > > John
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Castle Project Users" group.
To post to this group, send email to castle-project-users@googlegroups.com
To unsubscribe from this group, send email to 
castle-project-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/castle-project-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to