开发者

How can I determine the exception which comes from the dll

开发者 https://www.devze.com 2023-04-06 07:47 出处:网络
How can I determine the exception which comes from the dll Main.exe -subdll1.dll //dll error occurs at this, how can I find the error occurred from this dll.

How can I determine the exception which comes from the dll

Main.exe

-subdll1.dll //dll error occurs at this, how can I find the error occurred from this dll.

-subdll2.dll

like this

delegate(object sender, UnhandledExceptionE开发者_运维问答ventArgs e) {

    e.ExceptionSourceAssebmly like this

}


To see where an exception is defined you'll need to look at the top of the exception's stack trace.

Exception.TargetSite might contain this information directly (as a MethodBase), but the documentation notes it doesn't work across AppDomain boundaries.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号