Skip to content

Using String.format crashes in python #1641

Closed

Description

@0xBEEBAD

Environment

  • Pythonnet version: 3.x
  • Python version: 3.8
  • Operating System: Windows
  • .NET Runtime: net6.0

Details

using

PythonEngine.Initialize();
PythonEngine.Exec("from System import String\nString.Format('{0},{1}', 1, 2)"); //crashes here
int i = Runtime.Py_Main(cmd.Length, cmd);
PythonEngine.Shutdown();

in python, this line crashes

Activity

  1. changed the title [-]String.Format("x,y = {0},{1}", Screen.width, Screen.height)[/-] [+]using String.format crashes in python[/+] on Dec 21, 2021
  2. filmor commented on Dec 21, 2021

    @filmor
    Member

    Please provide a reproducible example and fill out the required environment information. Feel free to reopen once that's done.

  3. changed the title [-]using String.format crashes in python[/-] [+]Using String.format crashes in python[/+] on Dec 21, 2021
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