ObjectOutputStream oos = new ObjectOutputStream(...);
...
write lots of objects to the ObjectOutputStream.
...
get OutOfMemory exception :-(.
ObjectOutputStream keeps a record of every object it has seen, and thus prevents the object from being garbage-collected, even when you ARE done with it.
...
write lots of objects to the ObjectOutputStream.
...
get OutOfMemory exception :-(.
ObjectOutputStream keeps a record of every object it has seen, and thus prevents the object from being garbage-collected, even when you ARE done with it.
(no subject)
Date: 2005-03-31 09:50 am (UTC)Run 20: Makes multiple copies of very small shell script
Run 30: Scatters copies over Amethest's virtual bed
Run 40: Rolls around and tickles and cuddles very small shell script copies
/me sigh.
POST SOMETHING REAL!