[Tutor] out of memory conditions
Scott
syrinx@simplecom.net
Thu, 05 Apr 2001 19:33:57 -0500
If you're going to be using a LOT of memory, how do you make sure you
don't run out?
I did this as an experiment, in X (Gnome):
x =3D 0
y =3D []
while 1:
y.append(' ' * 1000000)
x =3D x + 1
print x
I thought this would raise an exception, but it didn't.
When x got to about 163, I got thrown out of X. I redid 'startx', and
everything seemed back to normal, except I couldn't run Agent
newsreader under Wine.
If you're going to be a memory-hog, do you just have to keep up with
it yourself?