C#.NET 4.0 App适用于Win 7 Pro 64位,而不是Win 8 Pro 64位

时间:2013-06-13 19:42:10

标签: c# .net windows-8 xna

我在Visual Studio 2010中创建了一个愚蠢的小游戏,与XNA一起玩游戏并自学游戏开发。它所做的就是循环颜色并围绕一些小球弹跳。我有为.NET 4.0 Client Profile构建的项目。这款游戏在Windows 7中运行完美,完全没有问题。但是,当尝试在Windows 8中运行它时,它会立即崩溃。在错误窗口中,我看到以下内容:

Problem signature:
  Problem Event Name:   APPCRASH
  Application Name: BouncingBalls.exe
  Application Version:  1.0.0.0
  Application Timestamp:    51ba1d0b
  Fault Module Name:    KERNELBASE.dll
  Fault Module Version: 6.2.9200.16451
  Fault Module Timestamp:   50988950
  Exception Code:   e0434352
  Exception Offset: 00014b32
  OS Version:   6.2.9200.2.0.0.256.48
  Locale ID:    1033
  Additional Information 1: 5861
  Additional Information 2: 5861822e1919d7c014bbb064c64908b2
  Additional Information 3: f3d5
  Additional Information 4: f3d5be0cad2787556264647dc02181c3

我也通过调试器运行它,这就是我所看到的:

Microsoft (R) Windows Debugger Version 6.2.9200.20512 AMD64
Copyright (c) Microsoft Corporation. All rights reserved.

CommandLine: C:\Users\Admin\Desktop\BouncingBalls\BouncingBalls.exe
Symbol search path is: C:\Users\Admin\Desktop\BouncingBalls\Content
Executable search path is: 
ModLoad: 00000000`00b20000 00000000`00b2a000   BouncingBalls.exe
ModLoad: 000007fe`249e0000 000007fe`24b9e000   ntdll.dll
ModLoad: 00000000`77780000 00000000`778d7000   ntdll.dll
ModLoad: 00000000`77730000 00000000`77775000   C:\Windows\SYSTEM32\wow64.dll
ModLoad: 00000000`776d0000 00000000`7772a000   C:\Windows\system32\wow64win.dll
ModLoad: 00000000`776c0000 00000000`776c8000   C:\Windows\system32\wow64cpu.dll
(f84.efc): Break instruction exception - code 80000003 (first chance)
*** ERROR: Symbol file could not be found.  Defaulted to export symbols for ntdll.dll - 
ntdll!LdrQueryOptionalDelayLoadedAPI+0x774:
000007fe`24a9ada0 cc              int     3

点击F5后:

0:000> g
ModLoad: 00000000`00e90000 00000000`00fc6000   WOW64_IMAGE_SECTION
ModLoad: 00000000`74f60000 00000000`75090000   WOW64_IMAGE_SECTION
ModLoad: 00000000`00e90000 00000000`00fc6000   NOT_AN_IMAGE
ModLoad: 00000000`00e90000 00000000`00fdc000   NOT_AN_IMAGE
ModLoad: 00000000`71260000 00000000`712aa000   C:\Windows\SysWOW64\MSCOREE.DLL
ModLoad: 00000000`74f60000 00000000`75090000   C:\Windows\SysWOW64\KERNEL32.dll
ModLoad: 00000000`755e0000 00000000`75686000   C:\Windows\SysWOW64\KERNELBASE.dll
(f84.efc): WOW64 breakpoint - code 4000001f (first chance)
First chance exceptions are reported before any exception handling.
This exception may be expected and handled.
*** ERROR: Symbol file could not be found.  Defaulted to export symbols for ntdll.dll - 
ntdll_77780000!LdrResolveDelayLoadsFromDll+0xa86:
7782054d cc              int     3

我一直在网上寻找答案,但似乎没有任何东西真正适用于这种情况或充分理解。我甚至试过从其他地方(桌面)以外的位置运行它,但总是相同的结果。我不知道从哪里可以解决这个问题。

1 个答案:

答案 0 :(得分:2)

好吧,事实证明我是个白痴,所以downvotes会很好。 = P

显然,由于我没有意识到,它不能在Windows 8上工作的原因是Win8机器没有安装XNA 4 Redist,而是安装在我的Win7机器上。安装完成后,游戏正常运行。