Monday 29 of September 2008 09:42:52 Tim Ansell napisaƂ(a):
> 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.

I confirm that this looks like the correct resolution. I haven't looked that 
deep into the client code. Thanks, Mithro :)
-- 
Ecce Jezuch
"It's so hard to be a fighter when your hands are always tied"
- P. Keenan

Attachment: signature.asc
Description: This is a digitally signed message part.

_______________________________________________
tp-devel mailing list
[email protected]
http://www.thousandparsec.net/tp/mailman.php/listinfo/tp-devel

Reply via email to