The side effects is that you might have disposable components that are not being disposed by the container.
On Mon, Dec 22, 2008 at 3:04 AM, codemonkey <stefan.sed...@gmail.com> wrote: > > Yeah I came across this issue as well, from what I understand you > should release your components from the container when you are done > with them. > > container.Release(item), this will ensure proper release of items, the > container keeps track of resolved items in order to handle decommision > property, this post has some more information: > > http://stackoverflow.com/questions/85183/windsor-container-how-to-force-dispose-of-an-object > > AllComponentsReleasePolicy is the default IIRC which states "track all > components to enforce correct disposal upon the MicroKernel instance > disposal", not in my case I store my container for the lifecycle of my > web app, as you resolve, you can step through the code and you will > see that it keeps a reference to your resolved object internally, > hence objects hanging around and causing the memory leak. > > I found using NoTrackingReleasePolicy to work fine for my purpose but > I am not aware of any negative implications of doing this. > > > > Cheers > Stefan > > On Dec 22, 7:56 pm, "johnpoll...@googlemail.com" > <johnpoll...@googlemail.com> wrote: >> I took Victor's advice and added the NoTrackingReleasePolicy which >> appears to have fixed thememoryleak. I may well post the issue on >> the Rhino group and see what they say. It seems linked to the >> UnitOfWorkApplication. >> >> On Dec 19, 4:56 pm, "Victor Kornov" <wee...@gmail.com> wrote: >> >> >http://weblogs.asp.net/stefansedich/archive/2008/11/05/avoid-memory-l... >> >> > On Fri, Dec 19, 2008 at 7:51 PM, johnpoll...@googlemail.com < >> >> > johnpoll...@googlemail.com> wrote: >> >> > > Sorry forgot to add about Windsor. Yes we are using Windsor >> > > integration. > > > -- Cheers, hammett http://hammett.castleproject.org/ --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---