我在使用 Windows 窗体和 C++/CLI 进行开发时遇到了这个问题。
只要我不在 ToolStrip 中插入按钮(标签和其他都可以),我的应用程序就可以工作。我认为这与工具条按钮对图像的要求有关。我什至尝试了标准按钮集,但应用程序以完全相同的方式失败。
应用程序编译,但在开始呈现此错误消息时失败:
    Description:
      Stopped working
    Problem signature:
      Problem Event Name:   CLR20r3
      Problem Signature 01: milionar.exe
      Problem Signature 02: 0.0.0.0
      Problem Signature 03: 4fbb6849
      Problem Signature 04: mscorlib
      Problem Signature 05: 2.0.0.0
      Problem Signature 06: 4a275af7
      Problem Signature 07: 2b5d
      Problem Signature 08: 333
      Problem Signature 09: MXYABJ2RSFG4UKNKGMSPJ2KFPMZXHCC5
      OS Version:   6.1.7600.2.0.0.256.48
      Locale ID:    1033
      Read our privacy statement online:
      http://go.microsoft.com/fwlink/?linkid=104288&clcid=0x0409
    If the online privacy statement is not available, please read our privacy statement offline:
      C:\Windows\system32\en-US\erofflps.txt
          Read our privacy statement online:
          http://go.microsoft.com/fwlink/?linkid=104288&clcid=0x0409
          If the online privacy statement is not available, please read our privacy statement offline:
          C:\Windows\system32\en-US\erofflps.txt
我在 Windows 7 64 位上使用 Visual Studio 2008。