laptop and a wrench

Erro

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.

Última Publicação: August 25, 2014 ArcGIS Engine
Número de ID do Erro NIM099924
EnviadoMarch 17, 2014
Última ModificaçãoJune 5, 2024
Aplica-se àArcGIS Engine
Versão encontrada10.1
Idioma do programaC#
Sistema OperacionalWindows OS
Versão do Sistema Operacional7 64 Bit
StatusNon-Reproducible

Informações Adicionais

No Public Explanation

Solução Provisória

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.

Etapas para Reproduzir

ID do Erro: NIM099924

Software:

  • ArcGIS Engine

Seja notificado quando o status de um erro mudar

Baixe o Aplicativo de Suporte da Esri

Descubra mais sobre este tema

Obtenha ajuda de especialistas do ArcGIS

Entre em contato com Suporte Técnico

Baixe o Aplicativo de Suporte da Esri

Ir para as opções de download