Hey Brendan,
It took me a very long time to figure out the problem, but it appear to
be line 90 of TestMidlet.java,
conn.getConnection().receiveAllFramesAsync(this);
If you comment this line out, it all starts working.
Basically, what is happening is the following,
1. The pipeline connection sets up a thread to call
conn.receiveFrame() and deliver it via the pipeline.
2. You then set up your own thread to also call receiveFrame by
calling conn.getConnection().receiveAllFramesAsync(this)
Basically these two threads will now fight over the frames coming in
from the socket.
The order you create the two threads means that the pipeline connection
thread was guaranteed to get the first packet, after that all bets are
off.
Tim 'mithro' Ansell
_______________________________________________
tp-devel mailing list
[email protected]
http://www.thousandparsec.net/tp/mailman.php/listinfo/tp-devel