Pythonwin crashes

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • accolades

    #1

    Pythonwin crashes

    Does anyone else have a problem with Pythonwin crashing after running a
    python script with graphics libraries? Whenever I use Pythonwin to run
    a PyGame or PyOgre script, Pythonwin crashes when the script exits.

    I know it's probably because the Pythonwin interpreter can't read from
    the console once the graphics mode has been changed, but has anyone
    discovered a workaround? I'd like to know if this problem is specific
    to my machine, or if others have witnessed this.

    Thanks
    Tim

  • Lucas Raab

    #2
    Re: Pythonwin crashes

    accolades wrote:[color=blue]
    > Does anyone else have a problem with Pythonwin crashing after running a
    > python script with graphics libraries? Whenever I use Pythonwin to run
    > a PyGame or PyOgre script, Pythonwin crashes when the script exits.
    >
    > I know it's probably because the Pythonwin interpreter can't read from
    > the console once the graphics mode has been changed, but has anyone
    > discovered a workaround? I'd like to know if this problem is specific
    > to my machine, or if others have witnessed this.
    >
    > Thanks
    > Tim
    >[/color]

    I think it's pretty much universal. Pythonwin crashes when you run
    programs with Tk in them.

    --
    --------------------------
    Lucas Raab
    lvraab"@"earthl ink.net
    dotpyFE"@"gmail .com
    AIM: Phoenix11890
    MSN: dotpyfe "@" gmail.com
    IRC: lvraab
    ICQ: 324767918
    Yahoo: Phoenix11890

    Comment

    • Steve Holden

      #3
      Re: Pythonwin crashes

      Lucas Raab wrote:[color=blue]
      > accolades wrote:
      >[color=green]
      >>Does anyone else have a problem with Pythonwin crashing after running a
      >>python script with graphics libraries? Whenever I use Pythonwin to run
      >>a PyGame or PyOgre script, Pythonwin crashes when the script exits.
      >>
      >>I know it's probably because the Pythonwin interpreter can't read from
      >>the console once the graphics mode has been changed, but has anyone
      >>discovered a workaround? I'd like to know if this problem is specific
      >>to my machine, or if others have witnessed this.
      >>
      >>Thanks
      >>Tim
      >>[/color]
      >
      >
      > I think it's pretty much universal. Pythonwin crashes when you run
      > programs with Tk in them.
      >[/color]

      The problem is that PythonWin uses MFC-based windowing, and runs
      programs as a part of the same process that the IDE itself runs in.

      This means that there are conflicting requirements for windowing, and
      this can lead to PythonWin getting confused enough to crash and die.

      To avoid this you need a development system that uses a remote debugging
      technique - WingIDE, for example, can successfully debug programs based
      on Tkinter, wxPython and other graphical toolkits, because the programs
      it runs are run as separate processes.

      regards
      Steve
      --
      Steve Holden +44 150 684 7255 +1 800 494 3119
      Holden Web LLC www.holdenweb.com
      PyCon TX 2006 www.pycon.org

      Comment

      Working...