Thu Sep 13, 2012 8:39 am
1. Document comes from DB in a binary form. The code which loads it as follows:
using (MemoryStream memoryStream = new MemoryStream(binaryData, false))
{
try
{
Spire.Doc.Document document = new Spire.Doc.Document(memoryStream, FileFormat.Doc); //Stackoverflow exception is thrown here.
result = document.GetText();
document.Close();
}
catch ...
finally
{
memoryStream.Close();
}
}
2. There is no exception information. Since it is a stackoverflow exception by runtime, process completely terminates despite its catch block.
3. The stackoverflow exception cannot be cought by runtime. I have [SecurityCritical, HandleProcessCorruptedStateExceptions] attributes on top of the method. So it catches access violation exception, but not stackoverflow.
However I have the doc file which triggers this behavior. I cannot post it in the forums, it contains personal user data. I can mail this document to your support team, but I don't know who/where to mail. Can you assist?