Skip to content
This repository was archived by the owner on Jan 4, 2026. It is now read-only.
This repository was archived by the owner on Jan 4, 2026. It is now read-only.

Memory leak when switching between forms #6

@NanderTGA

Description

@NanderTGA

Currently, when we switch to another form, we hide the one we're coming from and show the user a new one that has the previous form as its owner.
This way of doing things causes a memory leak because the old forms can't be disposed of without causing an error.

At the time of writing this issue, I have already found and implemented a solution dubbed Flex Seal:tm:.
The way it works is by showing the old Form1 again when we want to go back from another window.
We can then safely close the current form, causing its resources to be disposed of.
I also accounted for the form's locations staying the same.
The changes will be pushed soon to my fork.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions