[python-win32] found bug in pyhtonwin (with workaround)

michael.erhart at magnasteyr.com michael.erhart at magnasteyr.com
Fri Mar 25 07:18:10 CET 2005


Hi,

I have found a bug in pyhtonwin.

Sometimes pyhtonwin allocate about 1000 Toolbars and need about 5000 windows-user-objects. So some other programs didn't work at the same time
(like outlook)
A workaround is to set the toolbar size in the registry manual to 1. So pythonwin only needs about 77 user-objects, and all work perfect.

HKEY_CURRENT_USER\Software\Python 2.4\Python for Win32\ToolbarDefault-Summary\Bars = 1


with best regards,
Michael Erhart



>  -----Ursprüngliche Nachricht-----
> Von: 	Erhart Michael, EES  
> Gesendet:	Mittwoch, 16. März 2005 08:50
> An:	'python-win32 at python.org'
> Betreff:	pyhtonwin crash
> 
> Hi,
> 
> I have a big problem with pyhtonwin.
> Not everytime but, sometimes I start pyhtonwin, other applications (like outlook) crashes with the message "not enough memory or ressources" or can't open a window??
> My first think was, that is microsoft. But it isn't so. Sometimes pyhtonwin also can't open windows like the other programs (as example the file open window). When I close some other programs
> it will work!!! Very interesting. :)
> I think there is a problem with ressources. The only think i have seen in the windows task-manager is that pythonwin needs over 5000 User-objects. Other programs
> only need about 100.
> 
> Can somebody help me?
> Thank you very much.
> 
> with best reagards
> Michael Erhart
> 
> 
> ----------------------------------------------
> Michael Erhart
> MAGNA STEYR Fahrzeugtechnik
> Liebenauer Hauptstrasse 317, A-8041 Graz
> Tel.: ++43 316 404 4129 Fax ++43 316 404 5953
> E-Mail : michael.erhart at magnasteyr.com
> ----------------------------------------------
> Diese Nachricht ist fuer die Magna Steyr
> Fahrzeugtechnik AG & Co KG rechtsunverbindlich!
> . . . . . . . . . . . . . . . . . . . . . . . .
> This message is not legally binding upon
> Magna Steyr Fahrzeugtechnik AG & Co KG!
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
your system manager.
 
This footnote also confirms that this email message has been swept
for the presence of computer viruses. 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/python-win32/attachments/20050325/fb59beea/attachment.html


More information about the Python-win32 mailing list