windows . ui . xml .dll中的应用程序内部异常

本文关键字:应用程序 内部 异常 ui xml dll windows | 更新日期: 2023-09-27 18:17:24

我正在使用Visual Studio 2015 Community, c#和XAML开发Windows 10 Store Windows Universal应用程序。它正在解压缩压缩文件并显示其中找到的图像。

构建提供0个警告。

无论输入文件大小,调试版本都可以正常运行。

发布版本在典型的输入文件大小下运行良好。

对于大的输入文件大小(~100百万像素的图像),发布构建崩溃一致' unhandling exception at 0x55E9A305 (Windows.UI.Xaml.dll) in appname.exe: 0xC000027B:一个应用程序内部异常已经发生(参数:0x127DC468, 0x00000005)。'

当用户试图显示第二个图像时发生崩溃。所有的解压缩已经完成,所有的位图已经创建。

我已经摆弄了Build设置,并缩小了选项"用。net本地工具链编译"的差异。如果选中该选项,则应用程序崩溃。如果未选中该选项,则应用程序运行正常。

总的来说,应用程序使用了大约400mb的堆,所以虽然不小,但它还没有接近机器的容量。

"所以取消这个选项!",我听到你在哭。取消选中该框将导致认证失败,如下所示:

 FAILED 
 Supported APIs

• Error Found: The supported APIs test detected the following errors: 
 -API OpenSemaphore in api-ms-win-core-synch-l1-1-0.dll is not supported for this application type. System.Threading.dll calls this API.
 -API CreateSemaphore in api-ms-win-core-kernel32-legacy-l1-1-0.dll is not supported for this application type. System.Threading.dll calls this API.
 -API ExecuteAssembly in uwphost.dll is not supported for this application type. StupidTest.exe calls this API.
 -API DllGetActivationFactory in uwphost.dll is not supported for this application type. StupidTest.exe has an export that forwards to this API.

如果没有选择Compile . net Native工具链,空项目也会出现同样的失败。

我的问题是:

通用应用必须使用Compile .Net原生工具链吗?

是否有关于内部异常或其他地方的参数含义的文档,我可以转向故障排除?

简而言之,有什么建议可以帮助我摆脱"如果选择它就不能工作,但你必须选择它才能获得认证"的困境吗?

windows . ui . xml .dll中的应用程序内部异常

在过去的几天里,我也在这个问题上挣扎,我找到了答案!

所以如果你还没有将Visual Studio 2015更新到Update 1,那就去做吧。因为此错误是编译器中的错误,并且在更新之后,您将能够选择Compile . net Native工具链选项来构建项目。

是的,WACK工具拾取的那四个错误,是因为编译你的项目时没有检查包的Build菜单中的. net Native工具链选项。appxmanifest文件。