Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OLinq makes applications susceptible to memory leaks #10

Open
wasabii opened this issue Feb 7, 2015 · 0 comments
Open

OLinq makes applications susceptible to memory leaks #10

wasabii opened this issue Feb 7, 2015 · 0 comments

Comments

@wasabii
Copy link
Owner

wasabii commented Feb 7, 2015

OLinq currently implements IDisposable from the View and Buffer down through the operation graph into any underlying sources to handle event unsubscriptions. This works if the lifetime of the View or Buffer is carefully managed. However, in most WPF applications, the lifetime of objects exposed from the ViewModel is not carefully managed. The window is just closed.

Consequently if event subscriptions are held to objects that are not scoped to the Window, these references will end up preventing the GC from disposing entire sets of instances and UI resources.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant