Preventing Exceptions from 3rd party component from crashing the entire application

前端 未结 3 1940
逝去的感伤
逝去的感伤 2021-02-04 08:27

I am writing a multi-threaded application that relies on some third party DLLs. My problem is that when using an object from the third party library, if it raises an exception w

3条回答
  •  情深已故
    2021-02-04 09:05

    The issue is probably that exceptions thrown on background threads are not caught once they bubble out of the thread proc.

    This seems like a non-obvious duplicate of How to prevent an exception in a background thread from terminating an application?

提交回复
热议问题