PIL ImageGrab.grab memory leak

Erik Max Francis max at alcyone.com
Wed Jul 21 04:43:29 CEST 2004


This simple program chokes eventually (after ~70 snapshots) on my
Windows 98 machine:

	while True:
	    ImageGrab.grab()
	    time.sleep(0.2)

with the IOError "screen grab failed."  At that point the Python
application is unusable; it has consumed all memory.  Quitting and
restarting the application return it back to the original state.

Is this a known bug?

-- 
 __ Erik Max Francis && max at alcyone.com && http://www.alcyone.com/max/
/  \ San Jose, CA, USA && 37 20 N 121 53 W && AIM erikmaxfrancis
\__/ Golf is a good walk spoiled.
    -- Mark Twain



More information about the Python-list mailing list