473,396 Members | 1,929 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Memory exception with Tkinter root.quit

>Jane Austine wrote:
from Tkinter import *
>r=Tk()
>b=Button(r,text='Quit',command=r.quit)
>b.pack()
>r.mainloop()

And when I press the "Quit" button the mainloop exits. After that, if 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


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".
Jul 18 '05 #1
3 3869
On 17 Nov 2003 18:08:01 -0800, ja***********@hotmail.com (Jane Austine) wrote:
Jane Austine wrote:
>from Tkinter import *
>>r=Tk()
>>b=Button(r,text='Quit',command=r.quit)
>>b.pack()
>>r.mainloop()
And when I press the "Quit" button the mainloop exits. After that,if 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


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".


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
Jul 18 '05 #2
bo**@oz.net (Bengt Richter) wrote in message news:<bp**********@216.39.172.122>...
On 17 Nov 2003 18:08:01 -0800, ja***********@hotmail.com (Jane Austine) wrote:
Jane Austine wrote:
>>from Tkinter import *
>>>r=Tk()
>>>b=Button(r,text='Quit',command=r.quit)
>>>b.pack()
>>>r.mainloop()
And when I press the "Quit" button the mainloop exits. After that, if 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


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".


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

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?
Jul 18 '05 #3
ja***********@hotmail.com (Jane Austine) wrote in message news:<ba*************************@posting.google.c om>...
Jane Austine wrote:
>from Tkinter import *
>>r=Tk()
>>b=Button(r,text='Quit',command=r.quit)
>>b.pack()
>>r.mainloop()
And when I press the "Quit" button the mainloop exits. After that, if 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


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".


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

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

What is it? Is it safe to delete it?
Jul 18 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Andrew Gregory | last post by:
Could someone help me out with these few lines of code: I would like to know why the Quit button in this application removes the buttons and causes "Quitting" to be printed, but does not close the...
2
by: ServantOfTheSecretFire | last post by:
Hi there, I wrote my first Python program this weekend, Conway's Game of Life, and I used Tkinter for the graphics. I thought I had done something wrong when I saw the memory consumption, so I...
1
by: Jane Austine | last post by:
>>> from Tkinter import * >>> r=Tk() >>> b=Button(r,text='Quit',command=r.quit) >>> b.pack() >>> r.mainloop() And when I press the "Quit" button the mainloop exits. After that, if I finish...
2
by: Rob | last post by:
My first GUI so be gentle... When I start my program I call a class that runs the initial window. While in this class if a certain button is pressed it calls a function outside the class. This...
2
by: Elbert Lev | last post by:
#When I'm running this script on my windows NT4.0 box, #every time dialog box is reopened there is memory growth 384K. #Bellow is the text I sent to Stephen Ferg (author of easygui) # I have...
1
by: Pekka Niiranen | last post by:
Hi there, after reading TkInter/thread -recipe: http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/82965 I wondered if it was possible to avoid using threads for the following problem: ...
1
by: C D Wood | last post by:
To whom this may concern, Below is the source code, which demonstrates a problem I am having making a GUI for my python project work. 'table.txt' is a file that is read from the same folder....
5
by: H J van Rooyen | last post by:
Hi, I am struggling to get the pack method to do what I intend. I am trying to display user input in a seperate window, along with a little description of the field, something like this: ...
7
by: Protected | last post by:
Hello. I'm a complete newbie trying to learn Python. I decided to try some Tkinter examples, including the one from the library reference, but they don't seem to do anything! Shouldn't there be,...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.