Hi Ken,
I was so frustated by this .. I deleted the whole client project and
re-wrote it and to my surprise, it is working perfectly. Though I hate such a
situation where I don't know what happened, I guess we all have to live with
it sometimes.
Really Appreciate your help. Thanks !
pSm
"pSm" wrote:
> Hi,
> I was trying to write a basic chat client/server. I used remoting for this.
> The server type uses a shared property message to keep track of the last sent
> message. All the clients poll the server every 10ms to see if a new message
> is arrived.
>
> The server type is singleton. My guess was since the object is singleton and
> message is shared, the last mesage posted by anyone would be visible to
> anybody else.
>
> For example, say A says 'Hi' . When B polls for the message, he should see
> the 'Hi'. But what I see is, every client is seeing only the message that he
> has posted and nothing else. So, if A says 'Hi' and B says 'Bye', A only sees
> 'Hi' and B only sees 'Bye'. Can anyone help me understand what's wrong ?
>
> Second question is, after I saw that this was happening, I tried finding out
> if the object is getting destroyed. So I put in a finalizer and some logs in
> it. I see the finalizer run after every call from the client.Why is this so ?