Skip to content

Library can only be disposed once per application instance #54

@johncbaur

Description

@johncbaur

I am trying to use this library in an application that allows the user to (repeatedly) open and close an OpenTK window. When the window closed the OpenTK and QuickFont are disposed. The second time the window is created the library fails to render properly because 'SharedState' is pointing to disposed resources. I did a quick fix locally to publicly expose the setter on QFontDrawing SharedState property. When disposing of QuickFont I also set _drawing.SharedState to null. This resolved my issue but perhaps there is a more elegant fix. If this change would be accepted I can send a merge request.

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