From: jwei on
during serializing to a file on sd card i found an interestring behaviour:

if i do a direct seralize to FileStream:
Stream writer = new FileStream(fileName, FileMode.Create);
serializer.Serialize(writer , obj);
writer.Close();
i get a data abort (sdmmc.dll) error (if the size of the xml is only for eg
200 bytes, i dont get this error)

but if i do a serialization using StringBuilder/StringWriter and StreamWriter

var sb = new StringBuilder();
var writer = new StringWriter(sb));
xs.Serialize(writer, obj);
StreamWriter sw = new StreamWriter(fileName);
sw.WriteLine(sb.ToString());
sw.Close();

i dont get this error - ???