Subject: Error handling
Hello I m using your component with a pocketpc under gprs.
All is working very well.
I m trying to get error raised when the gprs connection is lost
....
AddHandler jClient.OnError, AddressOf jClient_OnError
.....
Private Sub jClient_OnError(ByVal sender As Object, ByVal ex As Exception)
MessageBox.Show(ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Hand, MessageBoxDefaultButton.Button1)
End Sub 'jClient_OnError
with GPRS on ,I create a XmppClientConnection, I send and receive message.
Now I manually close the GPRS connection (so I dont have anymore tcp connection) and then if I send a message I never have any error. And the message is not send.
How can I do ?
the only workaroud was to build special remote client with "ack" function wich send back ack for the message sent. But gprs packets are expensives...
All is working very well.
I m trying to get error raised when the gprs connection is lost
....
AddHandler jClient.OnError, AddressOf jClient_OnError
.....
Private Sub jClient_OnError(ByVal sender As Object, ByVal ex As Exception)
MessageBox.Show(ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Hand, MessageBoxDefaultButton.Button1)
End Sub 'jClient_OnError
with GPRS on ,I create a XmppClientConnection, I send and receive message.
Now I manually close the GPRS connection (so I dont have anymore tcp connection) and then if I send a message I never have any error. And the message is not send.
How can I do ?
the only workaroud was to build special remote client with "ack" function wich send back ack for the message sent. But gprs packets are expensives...
bejeweled
Show profile
Link to this post