Socket/TCPclient (Seriazlation)
Visual Basic
1
Posts
1
Posters
0
Views
1
Watching
-
Hi Guys Im making a messanger for myself... in vb.net... everything works greate if i use text, but as soon as i try to send an object through sending works fine but receiving gives me lots of problems... Canyone help me with this? Here is my code for receiving Public Sub listen() Dim formater As New BinaryFormatter() Do While True Dim message As New Message() Try message = formater.Deserialize(stream) RaiseEvent update(message.ToString) RaiseEvent update(message.ToString & vbNewLine) Catch e As Exception MsgBox(e.Message) End Try 'If message Is Nothing Then Exit Do Loop End Sub