[pywin32-bugs] [ pywin32-Bugs-1185186 ] Huge Resouce usage
OLD project page for the Python extensions for Windows
                
                Brought to you by:
                
                    mhammond
                    
                
            
            
        
        
        
    | 
      
      
      From: SourceForge.net <no...@so...> - 2005-04-19 09:39:47
      
     | 
| Bugs item #1185186, was opened at 2005-04-18 14:00 Message generated for change (Comment added) made by chaoskcw You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=1185186&group_id=78018 Category: pythonwin Group: None >Status: Closed Resolution: None Priority: 8 Submitted By: ChaosKCW (chaoskcw) Assigned to: Nobody/Anonymous (nobody) Summary: Huge Resouce usage Initial Comment: 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, ---------------------------------------------------------------------- >Comment By: ChaosKCW (chaoskcw) Date: 2005-04-19 09:39 Message: 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() ---------------------------------------------------------------------- Comment By: Mark Hammond (mhammond) Date: 2005-04-19 03:20 Message: Logged In: YES user_id=14198 Also note that the bug has been fixed in build 204 (or so my testing demonstrates) ---------------------------------------------------------------------- Comment By: bob gailer (ramrom) Date: 2005-04-18 16:25 Message: 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 ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=1185186&group_id=78018 |