Skip to content

embedded windows interpreter crashes on exit if external module loaded #1259

Closed
@sheinb

Description

@sheinb

I've built a multiplatform app with an embedded scoped python interpreter using pybind11. In this app, py::exec is called (using an embedded TCL interpreter) while the interpreter is alive and I load a module built with pybind11. This seems to work, but if I execute a command from that loaded module (e.g. the add function in example.cpp) and then exit my main app, it crashes under Windows (32 and 64 bit). No errors under Mac OSX. Are there special requirements for closing down the interpreter I should be following?

Thanks,
David Sheinberg

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