'Serializing variable length string across app domains'
Hi All,
Well I looked into the serialization stuff and seems that the default
serialization of .NEt isnt good enuf for me due to space problem.
the one that suits me most is with the help of Marshal.StructureToPtr
Its concise and good but there is one problem.
In case of unknow length strings , this will not work when the serialization
and de-serialization is done across app domains - as in case of socket apps.
see the structure at the bottom
If there is no direct solution, then I will have to do ALL the serialization
by myself without help from .NET :'-(
Then I will actually not be sending the original objects over network,
rather will be getting the fields out and putting in a generic message with
message header to identify type of message and length and will be then
sending it. Any help in that case will also be appreciated
btw every serialization works very fine in same app domains , but in case of
diff. app domains - things fall apart.
Any suggestions
Thank you in advance
rawCoder
Public Structure STData
Dim a As Integer
'<MarshalAs(UnmanagedType.BStr)> _
Dim b As String
End Structure
"rawCoder" <ra******@hotmail.com> wrote in message
news:uj**************@TK2MSFTNGP12.phx.gbl...
Hi All,
I need some advanced samples or references for passing custom objects over
the network using sockets.
Without using Remoting what are other options in .NET Framework for this
binary serialization.
Thank You
rawCoder