Skip to content

exit() called from executed python code terminates the process #292

Closed
@pyscripter

Description

@pyscripter

As per title. See also https://en.delphipraxis.net/topic/4537-exit-terminates-delphi-app/

exit() and sys.exit() raise the SystemExit python exception. PyErr_Print executed in TPythonEngine.CheckError after a SystemExit exception, results in immediate process termination, without giving Delphi a chance to handle this exception or have an orderly shutdown. Not nice.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions