#213 Huge Resouce usage

closed
nobody
pythonwin (176)
8
2005-04-19
2005-04-18
ChaosKCW
No

Hi

When runnin Python for windows IDE all my programs tend
to run out fo windows resources. Dialogs and menus
refuse to pop-up until you close some other appliations
etc.. Many programs report errors about windows system
resources being depleted. This is windows XP SP2,
python for win Build 203 for python 2.4. I have over
10GB of disk space free, over 1GB of sap space free and
over 700MB of phsycail RAM free. No other program cause
this issue.

When I check tak manager, the only super high value
compared with other programs is the USER Handles
catagory which is over 5000 on startup of python for
winodws IDE.

All MS docyumentation on Win XP suggests resources are
unlimited, but this is obviously a bunch of rubish. Why
does Python for windows open so many handles just to
show a basic menu and interactiev widnow ? Can it be
reduced ?

Thanks,

Discussion

  • ChaosKCW
    ChaosKCW
    2005-04-18

    • priority: 5 --> 8
     
  • bob gailer
    bob gailer
    2005-04-18

    Logged In: YES
    user_id=587593

    Known problem reported in bug 849191 et. al.
    Registry gets many ToolbarDefault-Bar entries under:
    HKEY_CURRENT_USER\Software\Python 2.3\Python for Win32.
    Workaround: delete the extra entries & set
    ToolbarDefault-Summary Bars=1

     
  • Mark Hammond
    Mark Hammond
    2005-04-19

    Logged In: YES
    user_id=14198

    Also note that the bug has been fixed in build 204 (or so my
    testing demonstrates)

     
  • ChaosKCW
    ChaosKCW
    2005-04-19

    Logged In: YES
    user_id=1261533

    Hi

    thanks for your quick and accurate resposnes.

    I can confirm this is the same issue. I have deleted the
    Regsitry Entries and no more than about 8 appear to have
    returned.

    I consider this bug closed now. Thanks again.

    PS here is a script for anyone who needs to delete a million
    regsitry entries :-)

    import win32api
    import win32con

    def main():
    mainkey = win32api.RegOpenKeyEx(win32con.HKEY_CURRENT_USER,
    'SOFTWARE\\Python 2.4\\Python for Win32' , 0 ,
    win32con.KEY_ALL_ACCESS )
    for key in win32api.RegEnumKeyEx(mainkey):
    if key[0].find("Toolbar") == 0:
    print "2.4: Deleting %s" % (key[0])
    win32api.RegDeleteKey(mainkey, key[0])
    mainkey = win32api.RegOpenKeyEx(win32con.HKEY_CURRENT_USER,
    'SOFTWARE\\Python 2.3\\Python for Win32' , 0 ,
    win32con.KEY_ALL_ACCESS )
    for key in win32api.RegEnumKeyEx(mainkey):
    if key[0].find("Toolbar") == 0:
    print "2.3: Deleting %s" % (key[0])
    win32api.RegDeleteKey(mainkey, key[0])

    if __name__=='__main__':
    main()

     
  • ChaosKCW
    ChaosKCW
    2005-04-19

    • status: open --> closed