Open 499940913 opened 6 years ago
more infos?
In the SimpleSample demo,I drag TestControl into designsurface and then call UnloadDesigner but the destructors of TestControl never invoke
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.
I find something memory leak when i call UnloadDesigner inDesignSurface