>>>>> Michael Sinz writes:

    Michael> On Sun, 18 Oct 1998 17:29:52 -0600, Glenn Valenta wrote:
    >> I'm almost sure this is one of those problems cuased by
    >> my misconception of how things work in Java v.s. C++,
    >> but I have run this thing around for days without resolve. 
    >> 
    >> Maybe someone can see the obvious
    >> 
    >> I'm trying to send a serialized class down a network pipe and am 
    >> only getting the first one on the other end. The rest seem to vanish.

    Michael> [code deleted...]

    Michael> You are trying to send the same object down the same
    Michael> (already open) object output stream.  The serialization
    Michael> stuff keeps track of what was sent already and does not
    Michael> send it again.

    Michael> You can either send new objects or close and open new
    Michael> streams for each one.

You can use ObjectOutputStream::reset() instead of closing/opening new
streams.


        Juergen

-- 
Juergen Kreileder, Universitaet Dortmund, Lehrstuhl Informatik V
Baroper Strasse 301, D-44221 Dortmund, Germany
Phone: ++49 231/755-5806, Fax: ++49 231/755-5802

Reply via email to