Socket data send-receive problem

I hv J2ME client application and vb.net socket server application communicating over sockets. Client connection is made successfully but cant send data to server. When I exit from client application then server application receives those data. (application works pretty fine on emulator but on real device gives above problem)

WTK Sample application gives same problem when I tried.

Any idea abt this problem ? gr8 ful if u have some working code.

[466 byte] By [vikaspatela] at [2007-11-27 8:24:01]
# 1
use flush!
deepspacea at 2007-7-12 20:12:59 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 2
flush or close your connection.
RiekeyLeea at 2007-7-12 20:12:59 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 3

yeah your idea works..

I hv used flush() method and now it works (Live on Nokia E62) nicely.

But to keep connection opened during whole application I dont close InputStream/OutputStream connection. I close it only at EXIT of application so that I get optimum performace in transactions.

vikaspatela at 2007-7-12 20:12:59 > top of Java-index,Java Mobility Forums,Java ME Technologies...