System.Runtime.InteropServices.COMException: 内存资源不足,无法处理此命令。 (异常来自 HRESULT:0x80070008)
在 System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo)
在 System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(Int32 errorCode, IntPtr errorInfo)
在 MS.Internal.Text.TextInterface.Native.Util.ConvertHresultToException(Int32 hr)
在 MS.Internal.Text.TextInterface.FontFace.GetDesignGlyphMetrics(UInt16* pGlyphIndices, UInt32 glyphCount, GlyphMetrics* pGlyphMetrics)
在 System.Windows.Media.GlyphTypeface.GlyphMetrics(UInt16* pGlyphIndices, Int32 characterCount, GlyphMetrics* pGlyphMetrics, Double emSize, Single pixelsPerDip, TextFormattingMode textFormattingMode, Boolean isSideways)
在 System.Windows.Media.GlyphTypeface.GetGlyphMetricsAndIndicesOptimized(UInt32* pCodepoints, Int32 characterCount, Double emSize, Single pixelsPerDip, UInt16[] glyphIndices, GlyphMetrics[] glyphMetrics, TextFormattingMode textFormattingMode, Boolean isSideways)
在 System.Windows.Media.GlyphTypeface.GetGlyphMetricsOptimized(CharacterBufferRange characters, Double emSize, Single pixelsPerDip, UInt16[] glyphIndices, GlyphMetrics[] glyphMetrics, TextFormattingMode textFormattingMode, Boolean isSideways)
在 System.Windows.Media.Typeface.CheckFastPathNominalGlyphs(CharacterBufferRange charBufferRange, Double emSize, Single pixelsPerDip, Double scalingFactor, Double widthMax, Boolean keepAWord, Boolean numberSubstitution, CultureInfo cultureInfo, TextFormattingMode textFormattingMode, Boolean isSideways, Boolean breakOnTabs, Int32& stringLengthFit)
在 MS.Internal.TextFormatting.SimpleRun.CreateSimpleTextRun(CharacterBufferRange charBufferRange, TextRun textRun, TextFormatterImp formatter, Int32 widthLeft, Boolean emergencyWrap, Boolean breakOnTabs, Double pixelsPerDip)
在 MS.Internal.TextFormatting.SimpleRun.Create(FormatSettings settings, CharacterBufferRange charString, TextRun textRun, Int32 cp, Int32 cpFirst, Int32 runLength, Int32 widthLeft, Int32 idealRunOffsetUnRounded, Double pixelsPerDip)
在 MS.Internal.TextFormatting.SimpleTextLine.Create(FormatSettings settings, Int32 cpFirst, Int32 paragraphWidth, Double pixelsPerDip)
在 MS.Internal.TextFormatting.TextFormatterImp.FormatLineInternal(TextSource textSource, Int32 firstCharIndex, Int32 lineLength, Double paragraphWidth, TextParagraphProperties paragraphProperties, TextLineBreak previousLineBreak, TextRunCache textRunCache)
在 MS.Internal.TextFormatting.TextFormatterImp.FormatLine(TextSource textSource, Int32 firstCharIndex, Double paragraphWidth, TextParagraphProperties paragraphProperties, TextLineBreak previousLineBreak, TextRunCache textRunCache)
在 MS.Internal.Text.Line.Format(Int32 dcp, Double width, TextParagraphProperties lineProperties, TextLineBreak textLineBreak, TextRunCache textRunCache, Boolean showParagraphEllipsis)
在 System.Windows.Controls.TextBlock.MeasureOverride(Size constraint)
在 System.Windows.FrameworkElement.MeasureCore(Size availableSize)
在 System.Windows.UIElement.Measure(Size availableSize)
在 System.Windows.ContextLayoutManager.UpdateLayout()
在 System.Windows.ContextLayoutManager.UpdateLayoutCallback(Object arg)
在 System.Windows.Media.MediaContext.InvokeOnRenderCallback.DoWork()
在 System.Windows.Media.MediaContext.FireInvokeOnRenderCallbacks()
在 System.Windows.Media.MediaContext.RenderMessageHandlerCore(Object resizedCompositionTarget)
在 System.Windows.Media.MediaContext.RenderMessageHandler(Object resizedCompositionTarget)
在 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)

猜测在此处发生了异常,将滚动条滚动至定位的treeViewItem处。 异常不是所有客户端都发生,只是个别的,不太知道什么原因,可能和电脑系统有关系吧?发出来求助下,顺便记录下。

C# System.Runtime.InteropServices.COMException: 内存资源不足,无法处理此命令。 (异常来自 HRESULT:0x80070008)相关推荐

  1. 异常详细信息: System.Runtime.InteropServices.COMException: 无效的类别字符串

    无效的类别字符串 说明: 执行当前 Web 请求期间,出现未处理的异常.请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息. 异常详细信息: System.Runtime.Inte ...

  2. System.Runtime.InteropServices.COMException 检索COM类工厂中CLSID{xxxxxxxxx}的组件时失败解决方法...

    iis7.5中设定应用程序池中<进程模型>中<标识>为localSystem 提示:System.Runtime.InteropServices.COMException: 命 ...

  3. System.Runtime.InteropServices.COMException (0x8004E00F): COM+ 无法与 Microsoft 分布式事务协调程序交谈 (异常来自 HRESU

    错误信息: System.Runtime.InteropServices.COMException (0x8004E00F): COM+ 无法与 Microsoft 分布式事务协调程序交谈 (异常来自 ...

  4. System.Runtime.InteropServices.COMException (0x80040154)错误

    用windwos服务.owc.excle组件生成Excel文档,然后通过邮件自动发生给公司管理层,本来在本地测试.配置都正常,但是部署到Window 2003服务器上,服务启动后,日志文件记录程序出错 ...

  5. System.Runtime.InteropServices.COMException (0x80004005): 无法创建目录或文件

    下单员QQ远程求助,百试不得解 调试时出错信息: 自定义工具错误: "代码生成器 'ReportCodeGenerator' 失败.异常堆积 = CrystalDecisions.Share ...

  6. System.Runtime.InteropServices.COMException

    System.Runtime.InteropServices.COMException (0x80040154) 因为EncryptCom.dll 没有注册 解决办法:注册EncryptCom.dll ...

  7. arcgis engine中的“System.Runtime.InteropServices.COMException”类型的第一次机会异常在...发生

    1.介绍 在我们利用arcgis engine编写程序时,或多或少会利用GP工具,会感受到GP工具带来的方便,但是GP工具好像有的时候并不是那么听话.比如最近小白我在写arcgis engine时调用 ...

  8. c#向word中添加图片的时候出现错误System.Runtime.InteropServices.COMException: 这不是有效文件名

    参考 https://www.cnblogs.com/louby/p/6427626.html https://www.cnblogs.com/fuyun2000/archive/2013/06/16 ...

  9. “System.Runtime.InteropServices.COMException (0x80070422): 无法启动服务”解决方法

    "System.Runtime.InteropServices.COMException (0x80070422): 无法启动服务"解决方法 参考文章: (1)"Syst ...

最新文章

  1. IEs 4 Linux 新版支撑 IE 7
  2. android荧光进度条,CSS3 彩色荧光棒进度条
  3. 《PHP、MySQL和Apache入门经典(第5版)》一2.11 实践练习
  4. 配置HADOOP开发环境
  5. --------------springMVC的开篇,以及底层执行流程,配置视图解析器,静态资源的访问,流程图,工作原理...
  6. 【LeetCode-面试算法经典-Java实现】【054-Spiral Matrix(螺旋矩阵)】
  7. 3706 teradata 语句报错_Teradata SQL
  8. 中反应器体积_实验室规模半连续和连续生物反应器在微生物学和生物技术工艺中的作用...
  9. java中long类型转换为int类型
  10. volatile不具备原子性
  11. 主席树有关的一些题目(持续更新)
  12. 深入掌握JMS(五):实战Topic
  13. 数据平台、大数据平台、数据中台……还分的清不?
  14. STM32工作笔记0096---用sprintf分配内存
  15. request 获取url
  16. Linux NTP服务配置
  17. oj1047: 对数表
  18. caffe 安装方法(python)
  19. 20道经典Java面试基础题
  20. 程序员如何写好技术文档?建议收藏

热门文章

  1. table属性里面的cellpadding和cellspacing
  2. Python捉虫记(持续更新)
  3. python电视剧口碑分析_【python 自然语言处理】对胡歌【猎场】电视剧评论进行情感值分析...
  4. JS控制滚动条的位置 JS控制TextArea滚动条自动滚动到最下部
  5. Java基础 :Day05-数组
  6. 钛酸钡BaTiO3/钛酸钾/钛酸钠电子陶瓷材料
  7. 点击返回键,将应用退至后台运行
  8. android Lollipop勿扰模式
  9. 记事贴5:昨天发高烧-38.9摄氏度,今天还晕晕糊糊的,头脑不清醒!
  10. (1Gb)S28HS01GTGZBHA030/ S28HS01GTGZBHV033/ S28HS01GTGZBHA033 FLASH - NOR闪存器件