I have a midlet which works fine in both the Sun emulator and the Nokia emulator, as well as assorted phones.

It does not, however, work at all on a 6600 or a 6620. I'm wondering if it's something to do with the Nokia Java VM perhaps?

To answer the typical questions, all of my networking operations happen on a thread. So there should be no issues there (I hope). I'm opening my socket connection like this...

     connection = (SocketConnection)Connector.open("socket://" +this.host + ":"+this.port);
     connection.setSocketOption(SocketConnection.KEEPALIVE, 0);
That seems like it should be fine, I think. My read events happen like this...

     byte a[] = new byte [1];
This is where it seems to hang. It doesn't like this at all. And the code never executes. Can anyone tell me what I could be doing wrong here?

Thanks much!