Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Crashing issue with MindFusion.Diagramming.Wpf.dll (Read 1871 times)
Anshul
Senior Member
****
Offline


I love YaBB 1G - SP1!

Posts: 316
Joined: Apr 3rd, 2009
Crashing issue with MindFusion.Diagramming.Wpf.dll
Mar 11th, 2011 at 9:46am
Print Post  
Hi,

We are getting an unhandled exception from MindFusion.Diagramming.Wpf.dll when performing following operation.

Our application is synchronized with the server and when any changes happened in the server, all instances get its notification. Steps are:

1. Trying to create a link from a ShapeNode (link's destination is still diagram, I have not released the mouse yet) in first instance

2. From second instance, same ShapeNode has been deleted by another user.

3. In first instance that ShapeNode is got deleted but link is still visible without having source and destination node

4. When mouse button is released, link gone but when click on diagram getting following unhandled exception

[1540] Exception Source: MindFusion.Diagramming.Wpf
[1540] Exception Message: Object reference not set to an instance of an object.
[1540] Exception StackTrace:
[1540]    at MindFusion.Diagramming.Wpf.InteractionState.x8ec3b2360a655172(DiagramItem xccb63ca5f63dc470) 
[1540]    at MindFusion.Diagramming.Wpf.DiagramItem.StartModify(Point org, Int32 handle, InteractionState ist) 
[1540]    at MindFusion.Diagramming.Wpf.DiagramNode.StartModify(Point org, Int32 handle, InteractionState ist) 
[1540]    at MindFusion.Diagramming.Wpf.ShapeNode.StartModify(Point org, Int32 handle, InteractionState ist) 
[1540]    at MindFusion.Diagramming.Wpf.InteractionState.Start(Point point, Diagram diagram) 
[1540]    at MindFusion.Diagramming.Wpf.Behaviors.BehaviorBase.OnMouseMove(Point mousePosition) 
[1540]    at MindFusion.Diagramming.Wpf.Diagram.OnPreviewMouseMove(MouseEventArgs e) 
[1540]    at System.Windows.UIElement.OnPreviewMouseMoveThunk(Object sender, MouseEventArgs e) 
[1540]    at System.Windows.Input.MouseEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget) 
[1540]    at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target) 
[1540]    at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs) 
[1540]    at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised) 
[1540]    at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args) 
[1540]    at System.Windows.UIElement.RaiseEvent(RoutedEventArgs args, Boolean trusted) 
[1540]    at System.Windows.Input.InputManager.ProcessStagingArea() 
[1540]    at System.Windows.Input.InputManager.ProcessInput(InputEventArgs input) 
[1540]    at System.Windows.Input.MouseDevice.Synchronize() 
[1540]    at System.Windows.Input.MouseDevice.ChangeMouseCapture(IInputElement mouseCapture, IMouseInputProvider providerCapture, CaptureMode captureMode, Int32 timestamp) 
[1540]    at System.Windows.Input.MouseDevice.PreNotifyInput(Object sender, NotifyInputEventArgs e) 
[1540]    at System.Windows.Input.InputManager.ProcessStagingArea() 
[1540]    at System.Windows.Input.InputManager.ProcessInput(InputEventArgs input) 
[1540]    at System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport) 
[1540]    at System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel) 
[1540]    at System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) 
[1540]    at System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) 
[1540]    at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) 
[1540]    at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o) 
[1540]    at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Boolean isSingleParameter) 
[1540]    at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Boolean isSingleParameter, Delegate catchHandler)
[1540] <<<<<-----

And after that application crashed.

Please look in to this issue and let know the suggestion to solve this as soon as possible.


Regards,
Anshul
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Crashing issue with MindFusion.Diagramming.Wpf
Reply #1 - Mar 11th, 2011 at 9:54am
Print Post  
Do not delete items while they are being modified. Instead queue them up if you detect that diagram.Interaction is != null, and delete the queued items after the user stops drawing with the mouse.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint