OverFlowException终止程序。应该是?

时间:2017-03-30 09:32:44

标签: .net exception overflowexception

在我们的Windows服务中,发生OverFlowException(由第三方dll)。但是,有一个很好的try / catch块可用,并且据我所知,这不应该终止程序,并且与StackOverFlowException相比它是可处理的异常,而StackOverFlowException无法处理并且它确实导致终止程序。正确?

在事件日志中,我有这个

    Application: QueuedJobProcessor.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.OverflowException
Stack:
   at Syncfusion.CompoundFile.XlsIO.Native.PropVariant.FreeName()
   at Syncfusion.CompoundFile.XlsIO.Native.PropVariant.Finalize()

我尝试通过测试应用程序模拟这个并且捕获了OverflowException。我想知道,为什么它仍然终止服务以及为什么它不在try / catch块中处理。

谢谢

0 个答案:

没有答案