On 11/7/06, Hieu Phan Thanh <[EMAIL PROTECTED]> wrote:

I have added an counter (static variable) and this variable will be
increased 1 when the *decode()* is invoked and it will be decreased 1
when the *messageReceived()* is invoked. My expected result is when the
system is stopped successful, this counter's value must be zero (0). But
it was not.


I forgot to ask one thing; are you sure that decode() is invoked only once
for one message?  It's not always true.  You will have to increase the
counter only when you call ProtocolDecoderOutput.write().  Are you doing so?

Trustin
--
what we call human nature is actually human habit
--
http://gleamynode.net/
--
PGP key fingerprints:
* E167 E6AF E73A CBCE EE41  4A29 544D DE48 FE95 4E7E
* B693 628E 6047 4F8F CFA4  455E 1C62 A7DC 0255 ECA6

Reply via email to