robbat2: (Default)
[personal profile] robbat2
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.

(no subject)

Date: 2005-03-30 08:34 am (UTC)
From: [identity profile] deskitty.livejournal.com
Yet one more reason why I use C++, and generally refuse to write in Java if I can help it ...

Yes, C++ is the misfit of the family, with two heads, three arms and a hunchback, but at least it doesn't talk your ear off and eat all the dessert at family gatherings. ;P

(no subject)

Date: 2005-03-30 08:52 am (UTC)
From: [identity profile] robbat2.livejournal.com
I've got the protocol docs for this app, but if I wanted to write it in anything else, I'd have to sort out a compiler for the machine it has to run on (they only have java :-().

May 2017

S M T W T F S
 123456
78910111213
141516171819 20
21222324252627
28293031   

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags