You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

VS2022升级至17.11.2后C++/CLR窗体应用启动崩溃求助

Visual Studio 2022 17.11.2升级后C++/CLR窗体应用启动崩溃及回滚方案

近日将Visual Studio 2022升级至最新版本17.11.2(该版本刚发布不久),编译运行两个此前完全正常的C++/CLR窗体应用时,均在ntdll.dll中发生崩溃。

崩溃发生在代码执行之前,main函数第一行的断点从未触发,属于CLR应用启动阶段崩溃,调用栈如下:

ntdll.dll!00007fffd90af6e0()    Unknown
KernelBase.dll!00007fffd6a351bb()   Unknown
ucrtbased.dll!00007fff0f6b24d7()    Unknown
ucrtbased.dll!00007fff0f6b2f1e()    Unknown
MyApp.exe!_onexit(int(*)() function=0x00007ff6ea6d0f20) Line 267    C++
MyApp.exe!atexit(void(*)() function=0x00007ff6ea6d0f20) Line 275    C++
MyApp.exe!std::`dynamic atexit destructor for '_Fac_tidy_reg''() Line 64    C++
[Managed to Native Transition]  
MyApp.exe!_initterm(void (__cdecl*)()* pfbegin=0x00000052842fdc40, void (__cdecl*)()* pfend=0x00000052842fdc48) Line 126    C++
MyApp.exe!<CrtImplementationDetails>::LanguageSupport::InitializeNative() Line 359  C++
MyApp.exe!<CrtImplementationDetails>::LanguageSupport::_Initialize() Line 598   C++
MyApp.exe!<CrtImplementationDetails>::LanguageSupport::Initialize() Line 805    C++
MyApp.exe!.cctor() Line 857 C++
[Native to Managed Transition]  
[Native to Managed Transition]  
[Native to Managed Transition]  
mscoreei.dll!00007fffbb50d6ea() Unknown
mscoree.dll!00007fffbc7aac42()  Unknown
kernel32.dll!00007fffd7ee7374() Unknown
ntdll.dll!00007fffd909cc91()    Unknown

核心诉求

  • 提供解决该崩溃问题的可行方法
  • 说明回滚到Visual Studio 2022特定旧版本的操作步骤
  • 提醒其他开发者注意该版本的兼容性问题

内容的提问来源于stack exchange,提问作者PazO

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.06.19 06:03:25