WPF 问题 PresentationCore.dll!System.Windows.Media.Composition.DUCE.Channel.SyncFlush() 分析
错误信息:
没有足够的内存继续执行程序在 System.Windows.Media.Composition.DUCE.Channel.SyncFlush()在 System.Windows.Interop.HwndTarget.UpdateWindowSettings(Boolean enableRenderTarget, Nullable`1 channelSet)在 System.Windows.Interop.HwndTarget.UpdateWindowPos(IntPtr lParam)在 System.Windows.Interop.HwndTarget.OnWindowPosChanging(IntPtr lParam)在 System.Windows.Interop.HwndTarget.HandleMessage(WindowMessage msg, IntPtr wparam, IntPtr lparam)在 System.Windows.Interop.HwndSource.HwndTargetFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)在 MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)在 MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)在 System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)在 System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
我们认为这个问题也可能与硬件有关,并且它可能不会出现在不同的视频卡的机器上。
通过禁用硬件加速来检查它,并在应用程序中的主窗体的加载事件处理程序中放置以下代码:
var hwnd_source = (System.Windows.Interop.HwndSource)PresentationSource.FromVisual(this); var hwnd_target = hwnd_source.CompositionTarget; hwnd_target.RenderMode = System.Windows.Interop.RenderMode.SoftwareOnly;
禁用后,不会出现问题了,可能是硬件问题!
有待解决...................
WPF 问题 PresentationCore.dll!System.Windows.Media.Composition.DUCE.Channel.SyncFlush() 分析相关推荐
- (winform/Wpf字体转换)System.Drawing.FontFamily/System.Windows.Media.FontFamily互相转换
winform下字体集: System.Drawing.FontFamily.Families wpf下字体集: System.Windows.Media.Fonts.SystemFontFamili ...
- 【WPF/WAF】使用System.Windows.Interactivity交互事件
[WPF/WAF]使用System.Windows.Interactivity交互事件 原文:[WPF/WAF]使用System.Windows.Interactivity交互事件 下载System. ...
- System.Drawing.Color转System.Windows.Media.Color
2019独角兽企业重金招聘Python工程师标准>>> //这是两个不同的类 System.Windows.Media.Color color = (System.Windows.M ...
- 使用.net 6.0框架的WPF应用如何引用System.Windows.Forms这个dll
在.net 6.0的WPF应用中,想使用OpenFileDialog 这个类或者FolderBrowserDialog这个类,是无法找到System.Windows.Forms这个dll引用的,即使从 ...
- WPF学习笔记——在“System.Windows.StaticResourceExtension”上提供值时引发了异常
在"System.Windows.StaticResourceExtension"上提供值时引发了异常 因应需要,写了一个转换器,然后窗体上引用,结果就出来这个错.编译的时候没事, ...
- WPF:Provide value on 'System.Windows.Baml2006.TypeConverterMarkupExtension'
Error message: Provide value on 'System.Windows.Baml2006.TypeConverterMarkupExtension' Reason: forge ...
- WPF运行报错System.Windows.Markup.XamlParseException:““在“System.Windows.StaticResourceExtension”
报错信息 System.Windows.Markup.XamlParseException:""在"System.Windows.StaticResourceExtens ...
- C# Pen绘制虚线(System.Drawing.Pen与System.Windows.Media.Pen)
一.绘制虚线的方法 GDI绘制,使用的是System.Drawing.Pen Pen pen = new Pen(Color.Red, 1); pen.DashStyle = System.Drawi ...
- C# wpf 封装成dll供C++调用
本文根据http://download.csdn.net/detail/l250178301/5647347创建,并加上自己的一些实际情况· 首先,新建一个wpf项目 然后 把app.xaml和那个窗 ...
最新文章
- 网络工程师_记录的一些真题_2007下半年上午
- Cenos 软件安装
- HTML5新特性介绍
- Perl新接触的小命令
- PostCss 从0开始
- 从零入门 FreeRTOS 操作系统之任务调度器
- Valid signing identity not found解决办法(原有IDP私钥丢失)
- 存储进阶:怎么才能保证 IO 数据的安全?
- 蚂蚁庄园 php源码,蚂蚁庄园五体投地
- mongodb 创建数据库权限账号,增删改查(基本操作)
- VMware vSphere 入门学习笔记
- vs2017远程编译linux教程,Visual Studio 2017 远程编译调试 Linux 上已存在的通过 Samba 共享的 CMake 工程...
- kubernetes视频教程笔记 (17)-Job和CronJob
- 什么是智能门锁,智能门锁主要有哪些优点?
- adb连接手机出现Connection refused
- Python中函数介绍及其使用
- 八芯网线水晶头做法(线序)
- eclipse中如何把中文变成英文?
- 阿里云RDS数据库外网连接和内网连接有什么不同?
- 芯片验证漫游指南_博通Wi-Fi芯片被曝安全漏洞,超10亿台终端或受影响,苹果、谷歌、小米、华为等大厂在列...