D
Dirk Reske
Hello,
I have following struct
struct Chunk
{
string Command;
byte[] Data;
}
when I try to serialize it after I filled it, all hangs up
byte[] bt = new byte[1024];
int len = reader.Read(bt,0,bt.Length);
Chunk data = new Chunk();
data.Command = "Data";
data.Data = bt;
ser.Serialize(strXml,data); //Here it hangs
when I let the byte array empty, all works fine
what is it?
I have following struct
struct Chunk
{
string Command;
byte[] Data;
}
when I try to serialize it after I filled it, all hangs up
byte[] bt = new byte[1024];
int len = reader.Read(bt,0,bt.Length);
Chunk data = new Chunk();
data.Command = "Data";
data.Data = bt;
ser.Serialize(strXml,data); //Here it hangs
when I let the byte array empty, all works fine
what is it?