laptop and a wrench

漏洞

In an Engine App that uses ESRI.ArcGIS.Carto.RealTimeFeedManger to display the location of a GPS point in a MapControl, resizing the MapControl, followed by some map interaction after a few hours, such as panning and zooming, causes the resized portion of the map display to "freeze" up.

上次发布: August 25, 2014 ArcGIS Engine
漏洞 ID 编号 NIM099924
已提交March 17, 2014
上次修改时间June 5, 2024
适用范围ArcGIS Engine
找到的版本10.1
编程语言C#
操作系统Windows OS
操作系统版本7 64 Bit
状态Non-Reproducible

附加信息

No Public Explanation

解决办法

There is some additional code that you need to add to an Engine Application that uses an AxMapControl with a live GPS feed to avoid the map control display getting corrupted after a while. With reference to the bug report sample application attached to this NIM, follow the steps below:1) Add code to the setPanelSize() method (this resizes the map control) to deactivate and re-activate the map control. setPanelSize() { // Add this code right at the top before your current code rightMapControl.ActiveView.Deactivate(); leftMapControl.ActiveView.Deactivate(); // Your existing code (no change) .... .... // Add this code immediately close to the end of your existing code rightMapControl.ActiveView.Activate(rightMapControl.hWnd); leftMapControl.ActiveView.Activate(leftMapControl.hWnd); //move map rightMapControl.Refresh(); leftMapControl.Refresh(); }2) Enable hardware accelertion within the FormLoad event: private void Main_Load(object sender, EventArgs e) { IGlobalScreenDisplaySettings gsds = new GlobalScreenDisplaySettings(); gsds.EnableHardwareAcceleration = gsds.CanEnableHardwareAcceleration(); // .. the rest of the form code ... }Once these changes are implemented, the mapControl stabilizes. Its display does not freeze up or get corrupted when a user interacts with the map control's display, e.g. panning and zooming the map; even after the application has been running for several hours or days.

重现步骤

漏洞 ID: NIM099924

软件:

  • ArcGIS Engine

当漏洞状态发生变化时获得通知

下载 Esri 支持应用程序

发现关于本主题的更多内容

获取来自 ArcGIS 专家的帮助

联系技术支持部门

下载 Esri 支持应用程序

转至下载选项