Prev: Reminder - Microsoft Responds to the Evolution of Community
Next: how to generate database model from *.sdf file ( .NET CF 2.0 )
From: jwei on 20 May 2010 16:16 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 - ??? |