gpt4 book ai didi

C# .NET 4.0 应用程序适用于 Win 7 Pro 64 位,不适用于 Win 8 Pro 64 位

转载 作者:太空宇宙 更新时间:2023-11-03 11:02:43 26 4
gpt4 key购买 nike

我在 Visual Studio 2010 中创建了一个愚蠢的小“游戏”来尝试使用 XNA 并自学游戏开发。它所做的只是循环颜色并在一些小球周围弹跳。我有为 .NET 4.0 客户端配置文件构建的项目。该游戏在 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

我一直在网上搜索答案,但似乎没有什么能真正正确地适用于这种情况或具有足够的意义。我什至尝试过从指定位置(桌面)以外的位置运行它,但结果始终相同。我不确定从这里到哪里去解决这个问题。

最佳答案

好吧,事实证明我是个白痴,所以反对票就可以了。 =P

显然,正如我所不知道的,它不能在 Windows 8 上运行的原因是 Win8 机器没有安装 XNA 4 Redist,而它安装在我的 Win7 机器上。一旦我安装了它,游戏就可以正常运行了。

关于C# .NET 4.0 应用程序适用于 Win 7 Pro 64 位,不适用于 Win 8 Pro 64 位,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17095656/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com