disconnecting from pipes

I am using a pipe to have two thread communicate via a piped writer and piped reader. When done, both threads issue a flush and close on their respective pipes. Later I want to have the threads communicate again, so I try to set up another connection. I get an exception of "already connected". What else I need to do to disconnect the two pipes?

c

[361 byte] By [p3oriona] at [2007-10-2 3:41:34]
# 1
The exception may be trying to say you cannot re-open the same pipe.Why are you using a pipe, given there are many more efficient, elegent, simpler, smarter, nicer etc etc ways to have two thread communicate?
Peter-Lawreya at 2007-7-15 22:55:57 > top of Java-index,Java Essentials,Java Programming...