Memory exception with Tkinter root.quit

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

    Memory exception with Tkinter root.quit

    >Jane Austine wrote:[color=blue][color=green][color=darkred]
    >>>>from Tkinter import *
    >>>>>r=Tk()
    >>>>>b=Button(r ,text='Quit',co mmand=r.quit)
    >>>>>b.pack()
    >>>>>r.mainloop ()[/color]
    >>
    >>
    >> And when I press the "Quit" button the mainloop exits. After that,[/color][/color]
    if[color=blue][color=green]
    >> I finish the python shell, a memory exception occurs.
    >>
    >> This is Windows XP machine with Python 2.3.[/color]
    >
    > Not much of a help, but I've tried it here: no problems... (python
    > 2.3.2, win xp). Can it be a Python 2.3.0 issue that has been fixed in
    > 2.3.1 or 2.3.2 ?
    >
    > --Irmen[/color]

    I tried it with 2.3.2, but it doesn't work either.

    The crash message is:

    python.exe -- application program error

    the command from "0x77f7e22a " referenced the memory at "0x00000028 ".
    The memory couldn't be "read".
  • Bengt Richter

    #2
    Re: Memory exception with Tkinter root.quit

    On 17 Nov 2003 18:08:01 -0800, janeaustine50@h otmail.com (Jane Austine) wrote:
    [color=blue][color=green]
    >>Jane Austine wrote:[color=darkred]
    >>>>>from Tkinter import *
    >>>>>>r=Tk()
    >>>>>>b=Button( r,text='Quit',c ommand=r.quit)
    >>>>>>b.pack( )
    >>>>>>r.mainloo p()
    >>>
    >>>
    >>> And when I press the "Quit" button the mainloop exits. After that,[/color][/color]
    >if[color=green][color=darkred]
    >>> I finish the python shell, a memory exception occurs.
    >>>
    >>> This is Windows XP machine with Python 2.3.[/color]
    >>
    >> Not much of a help, but I've tried it here: no problems... (python
    >> 2.3.2, win xp). Can it be a Python 2.3.0 issue that has been fixed in
    >> 2.3.1 or 2.3.2 ?
    >>
    >> --Irmen[/color]
    >
    >I tried it with 2.3.2, but it doesn't work either.
    >
    >The crash message is:
    >
    >python.exe -- application program error
    >
    >the command from "0x77f7e22a " referenced the memory at "0x00000028 ".
    >The memory couldn't be "read".[/color]

    Another data point:

    For me it ran seemingly ok in an NT4 console window, but with idle it acted weird,
    and I couldn't capture the session screen (oops, maybe Ctl-C is no good for that there)
    Anyway, the Quit button changed to depressed look, and then was stuck visible but not responding.
    I had to kill it with task manager. Then idle printed a -----restart----- line.

    Regards,
    Bengt Richter

    Comment

    • Jane Austine

      #3
      Re: Memory exception with Tkinter root.quit

      bokr@oz.net (Bengt Richter) wrote in message news:<bpc33k$9l k$0@216.39.172. 122>...[color=blue]
      > On 17 Nov 2003 18:08:01 -0800, janeaustine50@h otmail.com (Jane Austine) wrote:
      >[color=green][color=darkred]
      > >>Jane Austine wrote:
      > >>>>>from Tkinter import *
      > >>>>>>r=Tk()
      > >>>>>>b=Button( r,text='Quit',c ommand=r.quit)
      > >>>>>>b.pack( )
      > >>>>>>r.mainloo p()
      > >>>
      > >>>
      > >>> And when I press the "Quit" button the mainloop exits. After that,[/color][/color]
      > if[color=green][color=darkred]
      > >>> I finish the python shell, a memory exception occurs.
      > >>>
      > >>> This is Windows XP machine with Python 2.3.
      > >>
      > >> Not much of a help, but I've tried it here: no problems... (python
      > >> 2.3.2, win xp). Can it be a Python 2.3.0 issue that has been fixed in
      > >> 2.3.1 or 2.3.2 ?
      > >>
      > >> --Irmen[/color]
      > >
      > >I tried it with 2.3.2, but it doesn't work either.
      > >
      > >The crash message is:
      > >
      > >python.exe -- application program error
      > >
      > >the command from "0x77f7e22a " referenced the memory at "0x00000028 ".
      > >The memory couldn't be "read".[/color]
      >
      > Another data point:
      >
      > For me it ran seemingly ok in an NT4 console window, but with idle it acted weird,
      > and I couldn't capture the session screen (oops, maybe Ctl-C is no good for that there)
      > Anyway, the Quit button changed to depressed look, and then was stuck visible but not responding.
      > I had to kill it with task manager. Then idle printed a -----restart----- line.
      >
      > Regards,
      > Bengt Richter[/color]


      It's very strange but it works perfect when I rename python.exe into
      something else and run with it.

      Has it something to do with previous versions installed? I had
      Python2.3bx and 2.3c1 installed on this machine and didn't uninstall
      them before I installed Python 2.3.2.

      Why does this happen? How can I solve this problem?

      Comment

      • Jane Austine

        #4
        Re: Memory exception with Tkinter root.quit

        janeaustine50@h otmail.com (Jane Austine) wrote in message news:<ba1e306f. 0311171808.825b 1e9@posting.goo gle.com>...[color=blue][color=green]
        > >Jane Austine wrote:[color=darkred]
        > >>>>from Tkinter import *
        > >>>>>r=Tk()
        > >>>>>b=Button(r ,text='Quit',co mmand=r.quit)
        > >>>>>b.pack()
        > >>>>>r.mainloop ()
        > >>
        > >>
        > >> And when I press the "Quit" button the mainloop exits. After that,[/color][/color]
        > if[color=green][color=darkred]
        > >> I finish the python shell, a memory exception occurs.
        > >>
        > >> This is Windows XP machine with Python 2.3.[/color]
        > >
        > > Not much of a help, but I've tried it here: no problems... (python
        > > 2.3.2, win xp). Can it be a Python 2.3.0 issue that has been fixed in
        > > 2.3.1 or 2.3.2 ?
        > >
        > > --Irmen[/color]
        >
        > I tried it with 2.3.2, but it doesn't work either.
        >
        > The crash message is:
        >
        > python.exe -- application program error
        >
        > the command from "0x77f7e22a " referenced the memory at "0x00000028 ".
        > The memory couldn't be "read".[/color]

        Well, I seem to have found the (vague) reason.

        There is a file named python.exe.mani fest (along with
        pythonw.exe.man ifest) in the python folder. If I delete it, Tkinter
        doesn't raise memory exception.

        What is it? Is it safe to delete it?

        Comment

        Working...