hosting clr and catching threading exceptions

前端 未结 4 1839
梦毁少年i
梦毁少年i 2021-02-07 19:22

I am trying to write an plugin system that can load managed plugins. The host should be able to unload the plugins if there are any exceptions. for my poc I have a sample code

4条回答
  •  灰色年华
    2021-02-07 20:18

    Looks like adding following together with SetDefaultAction resolves the crash:

    clrPolicyManager->SetUnhandledExceptionPolicy(EClrUnhandledException::eHostDeterminedPolicy);
    

提交回复
热议问题