Sequencer Garbage Collection Improvements

Merged
#1207 · Created  · Last updated

Merged pull request

Merged in feature/memory_test (pull request #1207)

be46659·Author: ·Closed by: ·2021-12-27

Description

What is the purpose of this Pull Request?

This PR is targeted to some of the potential memory problems that are apparent when using the advanced seqeuncer.

Main points identified:

  • Selfbinding datacontext needs to be removed:
    DataContext="{Binding}"

  • RelayCommand Implementation leaks memory

    • MVVMLight Library impements weak actions, weak functions and weak events for the Relaycommand. Use this one instead

  • Drag/Drop Events

    • Using WeakEvents instead

  • Some specific sources of bindings prevented GC collection

    • Added code behind instead of databinding to make sure these resources can be collected

  • Replace System.Windows.Interactivity with the replacement library

How were the changes tested?

Manual tests, Memory snapshots

Did all Unit Tests pass?

Are there relevant Issues in the tracker that this PR will fix?

Issue #1023

Screenshots

Notes

 

0 attachments

0 comments

Loading commits...