I gets SFSObject from server with much of hashtable members. Each member object has number of fields. When the client receive server response the problem happens. It looks like follows:
Code: Select all
Problems parsing XML: System.NullReferenceException: Object reference not set to an instance of an object.
at SmartFoxClientAPI.Util.SFSObjectSerializer.Xml2obj(XmlNode xmlNode, SFSObject ao, Int32 depth)
at SmartFoxClientAPI.Util.SFSObjectSerializer.Xml2obj(XmlNode xmlNode, SFSObject ao, Int32 depth)
at SmartFoxClientAPI.Util.SFSObjectSerializer.Xml2obj(XmlNode xmlNode, SFSObject ao, Int32 depth)
at SmartFoxClientAPI.Util.SFSObjectSerializer.Deserialize(String xmlData)
It occurs when response length is 21500 bytes. The response content looks correct in OnDebugMessage handler output but in SFSObject deserialize procedure throwsexception.
And that's all right when I reduced response by shorten field names.
Is it a bug or may be I am wrong?