Skip to content

Destructors are not run when calling exit #2

Open
@paulthomson

Description

We should probably avoid calling exit and instead throw an exception, catch it in main and then exit. This allows destructors to execute. This may be important because helpful error messages may be hidden by unhelpful error messages about "leaking" objects. See mc-imperial/get-image-egl@063eb3b

We should also include the above commit!

Activity

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