_DebugHeapDelete Access Violation at termination

后端 未结 4 1575
青春惊慌失措
青春惊慌失措 2021-01-23 00:40

I\'m getting a weird access violation at the end of my main whose cause I\'m having some difficulties finding.

When shutting down my application I get an access violatio

4条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-01-23 01:18

    I believe you're experiencing the same bug I did in the MSVC10 runtime. To my understanding, it is caused by the runtime deleting a global facet when a DLL unloads, and then deleting it again when the process ends. If you link everything statically, it shouldn't happen. It also won't happen in MSVC9, either with static or shared linkage.

提交回复
热议问题