zoukankan      html  css  js  c++  java
  • Failed to create Accelerated Display. Please check the display hardware and drivers meet the minimum requirements.

    ArcGIS Runtime for WPF开发中Map设置了属性UseAcceleratedDisplay="True",报错:

    Sample: LocalMap
    Error: Failed to create Accelerated Display. Please check the display hardware and drivers meet the minimum requirements.
    Stack Trace:
       在 ESRI.ArcGIS.Client.NativeMap..ctor(INativeMapOwner map, Single dpi)
       在 ESRI.ArcGIS.Client.DrawingSurface..ctor(Single dpi, INativeMapOwner owner)
       在 ESRI.ArcGIS.Client.Map.OnApplyTemplate()
       在 System.Windows.FrameworkElement.ApplyTemplate()
       在 System.Windows.FrameworkElement.MeasureCore(Size availableSize)
       在 System.Windows.UIElement.Measure(Size availableSize)
       在 System.Windows.Controls.Grid.MeasureOverride(Size constraint)
       在 System.Windows.FrameworkElement.MeasureCore(Size availableSize)
       在 System.Windows.UIElement.Measure(Size availableSize)
       在 MS.Internal.Helper.MeasureElementWithSingleChild(UIElement element, Size constraint)
       在 System.Windows.Controls.ContentPresenter.MeasureOverride(Size constraint)
       在 System.Windows.FrameworkElement.MeasureCore(Size availableSize)
       在 System.Windows.UIElement.Measure(Size availableSize)
       在 System.Windows.Controls.Border.MeasureOverride(Size constraint)
       在 System.Windows.FrameworkElement.MeasureCore(Size availableSize)
       在 System.Windows.UIElement.Measure(Size availableSize)
       在 System.Windows.Controls.Control.MeasureOverride(Size constraint)
       在 System.Windows.FrameworkElement.MeasureCore(Size availableSize)
       在 System.Windows.UIElement.Measure(Size availableSize)
       在 MS.Internal.Helper.MeasureElementWithSingleChild(UIElement element, Size constraint)
       在 System.Windows.Controls.ContentPresenter.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.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)
    

      原因:硬件不满足显示加速的要求,可以使用下面的代码进行检测

    int tier = (System.Windows.Media.RenderCapability.Tier >> 16);
    

      当 tier > 1时满足,否则不满足,关闭AcceleratedDisplay

  • 相关阅读:
    数据库存储过程语法及实例
    springboot2配置JavaMelody与springMVC配置JavaMelody
    org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.reflection.ReflectionException: There is no getter for property named 'userId' in 'class java.lang.Integer'
    ajax表单提交执行成功但是没有执行回调函数,并且post变get了
    SpringMVC——重定向跳转传值
    thymeleaf中跳转地址的使用
    solr安装与配置
    redis集群redis-cluster搭建
    nginx安装手册
    Linux忘记root用户的密码
  • 原文地址:https://www.cnblogs.com/KevinJasmine/p/5469302.html
Copyright © 2011-2022 走看看