7 votes
closed
View does not properly dispose

Description

 
The View is not removed from WorkItems during the Dispose() process - as a result subsequent request for the view will result in an empty (disposed) view being displayed. This bug has not been readily apparent because there is another bug in the WorkItemController.cs ShowViewInWorkspace() method in which a supplied id is not utililized, e.g. view = WorkItem.SmartParts.AddNew<TView>(); as a result new views will always be created masking the issue.

Updates will also be required for the "Foundation Module" recipes for the view's designer.cs code if a View/Presenter is selected - the Dispose() method of the view will not dispose of the presenter (only components is disposed).

File Attachments


No files are attached


Closed Apr 28 2008 at 7:03 PM  by MichaelPuleio
Fixed in SCSF April 2008

Comments

most recent at top (show oldest at top)
BillKrat wrote Mar 24 2008 at 2:59 PM
The following URL contains more detailed comments and recommended work-arounds:
http://code.msdn.microsoft.com/SmartClient/Wiki/View.aspx?title=Smart%20Client%20Software%20Factory%20May%202007%20Bug-Fixes&referringTitle=Knowledge%20Base%20-%20May%202007

Updating...
© 2006-2009 Microsoft | About CodePlex | Privacy Statement | Terms of Use | Code of Conduct | Advertise With Us | Version 2009.10.27.15987