StackOverflowException: The requested operation caused a stack overflow.
System.Text.StringBuilder.ExpandByABlock (System.Int32 minBlockCharCount) (at <787acc3c9a4c471ba7d971300105af24>:0)
System.Text.StringBuilder.Append (System.Char* value, System.Int32 valueCount) (at <787acc3c9a4c471ba7d971300105af24>:0)
System.Text.StringBuilder.Append (System.Char[] value, System.Int32 startIndex, System.Int32 charCount) (at <787acc3c9a4c471ba7d971300105af24>:0)
System.IO.StringWriter.Write (System.Char[] buffer, System.Int32 index, System.Int32 count) (at <787acc3c9a4c471ba7d971300105af24>:0)
Exoa.Json.JsonTextWriter.WriteIndent () (at D:/DL/Exoa.Json/src/Exoa.Json/JsonTextWriter.cs:328)
Exoa.Json.JsonWriter.AutoComplete (Exoa.Json.JsonToken tokenBeingWritten) (at D:/DL/Exoa.Json/src/Exoa.Json/JsonWriter.cs:859)
Exoa.Json.JsonWriter.InternalWritePropertyName (System.String name) (at D:/DL/Exoa.Json/src/Exoa.Json/JsonWriter.cs:1673)
Exoa.Json.JsonTextWriter.WritePropertyName (System.String name, System.Boolean escape) (at D:/DL/Exoa.Json/src/Exoa.Json/JsonTextWriter.cs:273)
Exoa.Json.Serialization.JsonProperty.WritePropertyName (Exoa.Json.JsonWriter writer) (at D:/DL/Exoa.Json/src/Exoa.Json/Serialization/JsonProperty.cs:300)
Exoa.Json.Serialization.JsonSerializerInternalWriter.SerializeObject (Exoa.Json.JsonWriter writer, System.Object value, Exoa.Json.Serialization.JsonObjectContract contract, Exoa.Json.Serialization.JsonProperty member, Exoa.Json.Serialization.JsonContainerContract collectionContract, Exoa.Json.Serialization.JsonProperty containerProperty) (at D:/DL/Exoa.Json/src/Exoa.Json/Serialization/JsonSerializerInternalWriter.cs:474)
Exoa.Json.Serialization.JsonSerializerInternalWriter.SerializeValue (Exoa.Json.JsonWriter writer, System.Object value, Exoa.Json.Serialization.JsonContract valueContract, Exoa.Json.Serialization.JsonProperty member, Exoa.Json.Serialization.JsonContainerContract containerContract, Exoa.Json.Serialization.JsonProperty containerProperty) (at D:/DL/Exoa.Json/src/Exoa.Json/Serialization/JsonSerializerInternalWriter.cs:173)
Exoa.Json.Serialization.JsonSerializerInternalWriter.SerializeObject (Exoa.Json.JsonWriter writer, System.Object value, Exoa.Json.Serialization.JsonObjectContract contract, Exoa.Json.Serialization.JsonProperty member, Exoa.Json.Serialization.JsonContainerContract collectionContract, Exoa.Json.Serialization.JsonProperty containerProperty) (at D:/DL/Exoa.Json/src/Exoa.Json/Serialization/JsonSerializerInternalWriter.cs:475)

If the Color is Standard colors like Black(0,0,0) or Green(0,255,0) the save method is OK.But when the color is Non standard colors like Green(15,255,15) the save method will causing exception.

    11 days later

    Sorry for the late reply I didn't see your thread, that's very surprising I'll have a look and keep you posted here!

      Write a Reply...