When you create a component using an abstract facility(which I assume is implemented using the Windsor TypeFactory) you component will not be garbage collected if you don't release them. The components can be release by either of :
- Creating a Release method on you abstract factory. This method should take one argument (usually object) and a void return type. Calling this method will release the created component.
- Releasing the factory. This will release all components created by the factory.
In generally it is a bad idea to call the container directly. Only call the container directly to:
- Setup the container.
- Resolve your top level component.
- Dispose of the container (and all components inside)
I hope this helps.
Kind regards, Marwijn.