I haven't been in the code in a while but I'm 92% sure Release knows
what needs to be done so that you can always call it without worry
i.e. releasing a singleton is a no op.

On Thu, Mar 5, 2009 at 3:25 PM, Bill Barry <[email protected]> wrote:
>
> Bill Pierce wrote:
>> If you new a disposable object, you should dispose that object.
>> If you resolve a component, you should release the component.
>>
>> MyPage did not call resolve, so it should not be concerned with calling 
>> release.
>>
>> If FrameworkInitialize is resolving components, then you should have a
>> FrameworkTeardown to release the components.
>>
> Are you supposed to release singletons? What about per-thread objects or
> objects in a custom lifecycle?
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Castle Project Development List" 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-devel?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to