C++/CLI DLL crashes on load after port to VS2015 / .NET 4.6

后端 未结 2 1686
广开言路
广开言路 2021-01-23 01:19

Honestly, this is may be a dupe of VS2015: Migrated project compiles, but won't run ("Debug Assertion Failed!") but that has no answer and I have more details.

2条回答
  •  [愿得一人]
    2021-01-23 01:44

    I had the exact same problem. At least in my case, the problem was the /NOENTRY switch in "Additional Options" in the linker switches. This is only visible when "All Options" is selected in the linker settings. Removing /NOENTRY also removed the problem.

    My original (2013) project file did have this switch; however, the 2013 build did work. So either that switch was ignored in 2013, or the whole linking process has changed. (which from the looks i assume it has quite a bit.)

提交回复
热议问题