Why after enabling floating point exceptions I got multiple traps error

后端 未结 2 945
走了就别回头了
走了就别回头了 2021-02-11 09:19

Environment Windows 10 with MSVC2015 professional, compile with /EHa

What I\'m doing: enabling floating point exception to be able to catch exceptions when some bad thin

2条回答
  •  别那么骄傲
    2021-02-11 10:14

    I found answer on MSDN, problem with x86 platform, on x64 we can get correct exception code from thread context register see ref - // https://social.msdn.microsoft.com/Forums/en-US/48f63378-19be-413f-88a5-0f24aa72d3c8/the-exceptions-statusfloatmultipletraps-and-statusfloatmultiplefaults-is-needed-in-more

提交回复
热议问题