Leaking presenters!

Topics: CAB & Smart Client Software Factory
Feb 12, 2006 at 6:14 AM
originally posted by: DarrelMiller

The other day we were trying to figure out how to clean-up presenters/controllers after their views were removed and we decided to go check out how the appraiser workbench did it. At the time there was a comment in the sample code just before the AvailableAppraisalsView was displayed that said "This does not clean up after itself".

That comment has gone in the Feb 10 release, but the presenters are still leaking.

Is it by design that anything that is created using the CreateNew attribute needs to be removed manually from the WorkItem.Items collection?