Hi,
Our application is based on client server model where each instance is synchronized with the server. In our application we are having some shape nodes (30+) and some diagram links. We are getting unhandled exception while performing following operation in the diagram.
1. Deleting devices and links from one instance
2. At the same time, copying those devices from another instance and pasting in the diagram. While nodes are deleting we are also trying to select those nodes which are just going to delete.
3. After 3 -4 iterations we get this unhandled exception.
bgEventProcessingThread_DoWork: inner loop...
at MindFusion.Diagramming.Wpf.DiagramNode.x19a8a761a691d529(Rect xa6236fc5cd405c4e, Point x2f7096dac971d6ec, InteractionState xab29833053004740)
at MindFusion.Diagramming.Wpf.DiagramNode.x690a7db222c5c9f0(Rect xfcad4c0a9c5890c6, Rect x3bd62873fafa6252, Point x2f7096dac971d6ec, AdjustmentHandles xe72ccf98bea3cb87, InteractionState xab29833053004740)
at MindFusion.Diagramming.Wpf.DiagramNode.AllowModify(Point current, InteractionState ist)
at MindFusion.Diagramming.Wpf.ShapeNode.AllowModify(Point current, InteractionState ist)
at MindFusion.Diagramming.Wpf.InteractionState.ValidateAndSetCursor(Point point, Diagram diagram)
at MindFusion.Diagramming.Wpf.Behaviors.BehaviorBase.OnMouseMove(Point mousePosition)
at MindFusion.Diagramming.Wpf.Diagram.OnPreviewMouseMove(MouseEventArgs e)
at System.Windows.UIElement.OnPreviewMouseMoveThunk(Object sender, MouseEventArgs e)
at System.Windows.Input.MouseEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
Could you please let know which is this interaction state
xab29833053004740?
Please suggest suitable solution for this problem.
Note- When we are selecting those devices which are just about to delete, we are already checking these diagram properties still we are getting unhandled exception.
if (diagram.Interaction != null && diagram.Interaction.CurrentItem == diagram.Selection && !diagram.Interaction.IsCompleting() &&
(diagram.Interaction.Action == MindFusion.Diagramming.Wpf.Action.Create || diagram.Interaction.Action == MindFusion.Diagramming.Wpf.Action.Modify))
{
diagram.CancelDrag();
}
Regards,
Anshul