Hi Jennifer,
Thanks for replying.
What I am trying to do is
1. start edit the polygon
2. in EditGeometry event handler, if e.action == AddVertex or MoveVertex, retrieve the edits done and apply the same edits to another existing polygon
3. call StopEdit() to save any changes
4. call StartEdit() again to continue the editing process
I really cant pin point when it will crash but it's normally AddVertex->StopEdit->StartEdit->CancelEdit->crash. I'm suspecting something to do with canceledit?
I know it's hard to help me debug when you do not have the full code, but maybe you just give me suggestions on where to start and I'll try to debug it again.
the call stack:
Object reference not set to an instance of an object. at ESRI.ArcGIS.Client.EditGeometry.UpdateVertexPosition(MapPoint pnt, Boolean isTransformPoint)
at ESRI.ArcGIS.Client.EditGeometry.HandleElementMove(Point screenPoint, MapPoint mapPoint)
at ESRI.ArcGIS.Client.EditGeometry.Map_MouseMove(Object sender, MouseEventArgs e)
at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
at System.Windows.UIElement.RaiseTrustedEvent(RoutedEventArgs args)
at System.Windows.Input.InputManager.ProcessStagingArea()
at System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)
at System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel)
Thanks!!!