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

memory leak #49

Open
499940913 opened this issue Jul 18, 2018 · 3 comments
Open

memory leak #49

499940913 opened this issue Jul 18, 2018 · 3 comments

Comments

@499940913
Copy link

I find something memory leak when i call UnloadDesigner inDesignSurface

@jogibear9988
Copy link
Member

more infos?

@499940913
Copy link
Author

In the SimpleSample demo,I drag TestControl into designsurface and then call UnloadDesigner but the destructors of TestControl never invoke

@jogibear9988
Copy link
Member

Puh..

At first it's correct behavior, because if you Undo, Instance is reused...

But, if you do

		desItem.Services.GetService<UndoService>().Clear();
		GC.Collect();

it's also not called, so there seems to be an error. But atm. I've no time to search for it. If you find samt, I will fix.

@jogibear9988 jogibear9988 pinned this issue Jun 5, 2019
@jogibear9988 jogibear9988 unpinned this issue Feb 2, 2023
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

2 participants