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.
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.