A HUGE thank you Mithro, I'll try this!

-----Original Message-----
From: [EMAIL PROTECTED] on behalf of Krzysztof Sobolewski
Sent: Tue 9/30/2008 1:31 AM
To: Thousand Parsec Developers List
Subject: Re: [tp-devel] J2ME - The PipelinedConnection and my conundrum
 
Monday 29 of September 2008 09:42:52 Tim Ansell napisal(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

<<winmail.dat>>

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

Reply via email to