Xml 从Windows CE写入SD卡失败?

Xml 从Windows CE写入SD卡失败?,xml,windows-mobile-6.5,Xml,Windows Mobile 6.5,我正在使用Dataset.WriteXML将XML文件从Windows CE写入SD卡。大多数情况下它都能正确通过,但有时我会出错: Error Time:7/25/12 1:17:07 PM Message: Details: System.IO.IOException: IOException at System.IO.__Error.WinIOError(Int32 errorCode, String str) at System.IO.FileStream.Writ

我正在使用Dataset.WriteXML将XML文件从Windows CE写入SD卡。大多数情况下它都能正确通过,但有时我会出错:

    Error Time:7/25/12 1:17:07 PM Message:  Details:
System.IO.IOException: IOException
   at System.IO.__Error.WinIOError(Int32 errorCode, String str)
   at System.IO.FileStream.WriteCore(Byte[] buffer, Int32 offset, Int32 count)
   at System.IO.FileStream.Write(Byte[] array, Int32 offset, Int32 count)
   at System.IO.StreamWriter.Flush(Boolean flushStream, Boolean flushEncoder)
   at System.IO.StreamWriter.Write(Char value)
   at System.Xml.XmlTextWriter.InternalWriteEndElement(Boolean longFormat)
   at System.Xml.XmlTextWriter.WriteEndElement()
   at System.Data.DataTextWriter.WriteEndElement()
   at System.Data.XmlDataTreeWriter.XmlDataRowWriter(DataRow row, String    encodedTableName)
   at System.Data.XmlDataTreeWriter.Save(XmlWriter xw, Boolean writeSchema)
   at System.Data.DataSet.WriteXml(String fileName, XmlWriteMode mode)

如果在异常处理程序上设置断点,则应该能够分析异常并获取HRESULT值。这个值是多少?