Hello,
I am trying to use the RulerTrackInteractiveOverlay from the Ruler Overlay sample project. I converted the code to VB, and can compile and run it, but when I try to draw the ruler, or even just move the map, the code hangs up. If I hit the pause button, the IDE indicates that the code is stuck on the line Lock.EnterWriteLock, in the following method:
Protected Overrides Function MouseUpCore(ByVal interactionArguments As InteractionArguments) As InteractiveResult
'Removes the line of the ruler at finishing dragging (at mouse up event).
Dim interactiveResult As New InteractiveResult()
interactiveResult.DrawThisOverlay = InteractiveOverlayDrawType.Draw
interactiveResult.ProcessOtherOverlaysMode = ProcessOtherOverlaysMode.DoNotProcessOtherOverlays
If mouseDown = 1 Then
mouseDown = 0
Lock.EnterWriteLock()
TrackShapeLayer.InternalFeatures.Remove(currentFeatureKey)
Lock.ExitWriteLock()
End If
Return interactiveResult
End Function
One thing to note is that I already have an override in place for MouseDownCore from the TrackZoomInWithoutShiftKey.ModeInteractiveOverlay sample. Could these two overrides be conflicting in some way?
Thanks,
Dib