WPF应用程序有时会在渲染时崩溃 [英] WPF application sometimes crashes on render

查看:418
本文介绍了WPF应用程序有时会在渲染时崩溃的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,

我们有复杂的wpf应用程序,有时(很少)在某些计算机上崩溃。我使用Windows错误报告进行转储,它显示如下。任何建议如何修复它?

We have complex wpf application which sometimes (very rarely) crashes on some computers. I got dump using Windows Error Reporting, it shows following. Any recommendations how to fix it?

(39c.d48): Unknown exception - code c0000374 (first/second chance not available)
ntdll!RtlReportCriticalFailure+0x97
ntdll!RtlpHeapHandleError+0x12
ntdll!RtlpLogHeapFailure+0x96
ntdll!RtlpLowFragHeapAllocFromContext+0x8b54c
ntdll!RtlpAllocateHeapInternal+0xf2
wpfgfx_v0400!WPF::HrMalloc+0x61
wpfgfx_v0400!UnmarshalResourceArray+0x6e
wpfgfx_v0400!CMilDrawingGroupDuce::ProcessUpdate+0x188
wpfgfx_v0400!CComwpfgfx_v0400!CComwpfgfx_v0400!CCrossThreadComwpfgfx_v0400!CCrossThreadComwpfgfx_v0400!CComwpfgfx_v0400!CComwpfgfx_v0400!CPartitionThread::RenderPartition+0x34
wpfgfx_v0400!CPartitionThread::Run+0x64
wpfgfx_v0400!CPartitionThread::ThreadMain+0x2b
kernel32!BaseThreadInitThunk+0x14
ntdll!RtlUserThreadStart+0x21

谢谢,丹尼斯。

Thanks, Denis.

推荐答案

嗨Kadochkin Denis,

Hi Kadochkin Denis,

根据Windows错误报告,很难说出问题所在。

According to the windows error report, it’s hard to say where the issue is.

你的应用程序是否有自己的日志系统?您最好尝试捕获应用程序中的异常信息并将其保存到日志文件中。然后,如果应用程序在某些计算机上崩溃,您可以找到此日志文件并检查详细的异常
信息。例如,
Application.DispatcherUnhandledException事件
 

Does your application have log system itself? You’d better try to catch the exception information in your application and save it into a log file. Then, if the application crashes on some machines, you could find this log file and check the detailed exception information. For example, Application.DispatcherUnhandledException Event 

最诚挚的问候,

Xavier Xie

Xavier Xie


这篇关于WPF应用程序有时会在渲染时崩溃的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆