Exception:No more output streams....Help

Hi to all..

I'm developing program for viewing server file system on mobile phone. When i ran program

i got exception java.io.IOException: no more output streams available while attempting to excecute following line dos = new DataOutputStream(sc.openDataOutputStream());.

This line excecutes successfully for 2/3 times. but after it throws above exception.

Plz help me. I'm stuck on this problem

Thnx in Advance.

[452 byte] By [PremInda] at [2007-10-2 12:55:11]
# 1
You probably don't close the old streams after you use them.
deepspacea at 2007-7-13 10:10:20 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 2
I'm closing stream each time. Actually i decalred everything global and above code statement executes fine for 2 times in different functions but after that its not get sc.getOutputStream(). Plz forward me any suggestion.
PremInda at 2007-7-13 10:10:20 > top of Java-index,Java Mobility Forums,Java ME Technologies...