Skip to content

memory leak #49

Open
Open

Description

@499940913

I find something memory leak when i call UnloadDesigner inDesignSurface

Activity

  1. jogibear9988 commented on Jul 18, 2018

    @jogibear9988
    Member

    more infos?

  2. 499940913 commented on Jul 18, 2018

    @499940913
    Author

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

  3. jogibear9988 commented on Jul 18, 2018

    @jogibear9988
    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.

  4. pinned this issue on Jun 5, 2019
  5. unpinned this issue on Feb 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions