Hi guys, I am using windsor to resolve object in differen thread all the time and as lond as it is not UI component it works fine. I do not have a problem with that.
Now disposing it is a different story as from my experience it very much depends on configuration and your solution. Krzysztof please correct me if i am wrong but if your container track references than if you want to dispose your object you should use relese method in container. Than container will have a chance to dispose your object and all dependencies with in a scope of your object. If you do not release it will keep reference to your object and gc will not be able to collect it. Mariusz On May 18, 2012 1:52 AM, "Krzysztof Koźmic" <[email protected]> wrote: > Resolve it > > On 17/05/2012 7:00 PM, Henrik wrote: > > Yeah, I know, it's grand that it doesn't if you don't initialize them like > I do. > > But how do I make it touch my object, is the question? :) > > On Thursday, 17 May 2012 10:56:40 UTC+2, Krzysztof Koźmic wrote: >> >> It works as expected. >> >> Windsor never touches your object. >> >> @K >> >> On 16/05/2012 10:34 PM, Henrik wrote: >> >> Here: https://gist.github.com/**2710007 <https://gist.github.com/2710007> >> >> On Tuesday, 15 May 2012 22:27:42 UTC+2, Krzysztof Koźmic wrote: >>> >>> I'm not sure I understand. >>> >>> Do you have a failing test to demonstrate it? >>> >>> On 16/05/2012 6:06 AM, Henrik Feldt wrote: >>> >>> If it is resolved once, yes, but not otherwise. >>> >>> >>> >>> The problem is the otherwise. How do I do then? >>> >>> >>> >>> *From:* >>> castle-project-users@**googlegroups.com<[email protected]>[ >>> mailto:castle-project-users@**googlegroups.com<[email protected]>] >>> *On Behalf Of *Krzysztof Kozmic >>> *Sent:* den 15 maj 2012 12:02 >>> *To:* >>> castle-project-users@**googlegroups.com<[email protected]> >>> *Subject:* Re: Windsor w/ BackgroundFactoryMethod >>> >>> >>> >>> if it's IDisposable it will get disposed >>> >>> On 13/05/2012 10:24 AM, Henrik Feldt wrote: >>> >>> bump >>> >>> >>> >>> *From:* >>> castle-project-users@**googlegroups.com<[email protected]>[ >>> mailto:castle-project-users@**googlegroups.com<[email protected]>] >>> *On Behalf Of *Henrik >>> *Sent:* den 9 maj 2012 00:47 >>> *To:* >>> castle-project-users@**googlegroups.com<[email protected]> >>> *Subject:* Windsor w/ BackgroundFactoryMethod >>> >>> >>> >>> I'm looking to initialize a component on a background thread, so I >>> hacked something together. It looks like this: >>> >>> https://gist.github.com/**2640092 <https://gist.github.com/2640092> >>> >>> It works really nice, except that of course the component isn't being >>> disposed unless something else that depends on it is resolved, meaning >>> there's a live component needing disposing which isn't being disposed. >>> >>> Where would I jack into Windsor 3 to provide a piece of logic stating, >>> that for this type of handler/component/burden (?) when the >>> container/kernel is being disposed, also perform a resolve and then release >>> call, for this component? >>> >>> -- >>> You received this message because you are subscribed to the Google >>> Groups "Castle Project Users" group. >>> To view this discussion on the web visit https://groups.google.com/d/** >>> msg/castle-project-users/-/**GZa5mIdsbKgJ<https://groups.google.com/d/msg/castle-project-users/-/GZa5mIdsbKgJ> >>> . >>> To post to this group, send email to castle-project-users@** >>> googlegroups.com <[email protected]>. >>> To unsubscribe from this group, send email to castle-project-users+** >>> [email protected]<[email protected]> >>> . >>> For more options, visit this group at http://groups.google.com/** >>> group/castle-project-users?hl=**en<http://groups.google.com/group/castle-project-users?hl=en> >>> . >>> >>> -- >>> 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 <[email protected]>. >>> To unsubscribe from this group, send email to castle-project-users+** >>> [email protected]<[email protected]> >>> . >>> For more options, visit this group at http://groups.google.com/** >>> group/castle-project-users?hl=**en<http://groups.google.com/group/castle-project-users?hl=en> >>> . >>> >>> >>> >>> -- >>> 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 <[email protected]>. >>> To unsubscribe from this group, send email to castle-project-users+** >>> [email protected]<[email protected]> >>> . >>> For more options, visit this group at http://groups.google.com/** >>> group/castle-project-users?hl=**en<http://groups.google.com/group/castle-project-users?hl=en> >>> . >>> -- >>> 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 <[email protected]>. >>> To unsubscribe from this group, send email to castle-project-users+** >>> [email protected]<[email protected]> >>> . >>> For more options, visit this group at http://groups.google.com/** >>> group/castle-project-users?hl=**en<http://groups.google.com/group/castle-project-users?hl=en> >>> . >>> >>> >>> -- >> You received this message because you are subscribed to the Google Groups >> "Castle Project Users" group. >> To view this discussion on the web visit https://groups.google.com/d/** >> msg/castle-project-users/-/**cjyCuX8UGfgJ<https://groups.google.com/d/msg/castle-project-users/-/cjyCuX8UGfgJ> >> . >> To post to this group, send email to castle-project-users@** >> googlegroups.com <[email protected]>. >> To unsubscribe from this group, send email to castle-project-users+** >> [email protected]<[email protected]> >> . >> For more options, visit this group at http://groups.google.com/** >> group/castle-project-users?hl=**en<http://groups.google.com/group/castle-project-users?hl=en> >> . >> >> >> -- > You received this message because you are subscribed to the Google Groups > "Castle Project Users" group. > To view this discussion on the web visit > https://groups.google.com/d/msg/castle-project-users/-/FFDorfSwwI8J. > To post to this group, send email to [email protected] > . > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/castle-project-users?hl=en. > > > -- > You received this message because you are subscribed to the Google Groups > "Castle Project Users" group. > To post to this group, send email to [email protected] > . > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/castle-project-users?hl=en. > -- You received this message because you are subscribed to the Google Groups "Castle Project Users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/castle-project-users?hl=en.
