English

Problem: Panning with Arrow keys crashes MO1.2/MOPlus LabelPlacer project

Description

If an arrow key or the PageUp/PageDown key is pressed while a redraw of a map is in progress, the application will crash if it uses the LabelPlacer object.

Cause

Using the arrow keys to pan will cancel a redraw of the map that is in progress. This appears to cause an exception in MOPlus.DLL.

Solution or Workaround

Set the CancelAction property to moCancelNone when the form with the map is loaded:

Code:
Map1.CancelAction = moCancelNone