laptop and a wrench

Bug

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.

Zuletzt veröffentlicht: August 25, 2014 ArcGIS Engine
Bug-ID-Nummer NIM099924
EingereichtMarch 17, 2014
Zuletzt geändertJune 5, 2024
Gilt fürArcGIS Engine
Gefunden in Version10.1
ProgrammspracheC#
BetriebssystemWindows OS
Betriebssystemversion7 64 Bit
StatusNon-Reproducible

Zusätzliche Informationen

No Public Explanation

Workaround

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.

Schritte zur Reproduzierung

Bug-ID: NIM099924

Software:

  • ArcGIS Engine

Benachrichtigung erhalten, wenn sich der Status eines Bugs ändert

Esri Support App herunterladen

Weitere Informationen zu diesem Thema erkunden

Unterstützung durch ArcGIS-Experten anfordern

An den technischen Support wenden

Esri Support App herunterladen

Zu Download-Optionen wechseln