Prism Memory Testing

Topics: Prism v4 - WPF 4
Nov 3, 2014 at 4:52 PM
Hi I have a sample project at:

https://onedrive.live.com/redir?resid=A53184DCECF800FE!337&authkey=!AMEFsmbht-mKzxo&ithint=file%2czip

I am on the latest version of Prism and trying to test memory usage. The sample project is a very basic version of what I am currently using. Could you have a look and see if I am doing everything properly? I am a bit concerned as to whether Views and View Models are being disposed of correctly.

I have added deconstructors to View2ViewModel and View2. These appear to get fired 3 times after:
  • Navigate to View
  • Close
  • Navigate to View
  • Close again
Is this correct?

Also if you:
  • Navigate to view
  • Close
  • Fire Test Event
It appears to have hit the event subscription, even though that should have been removed.

Would be good if you could have a look. Thanks!
Feb 4, 2015 at 12:17 PM
Any feedback on this?