NullReferenceException when using EditGeometry

Discussion created by shweekia on Dec 28, 2011
Latest reply on Dec 16, 2013 by josh17m

i using esri for WPF v2.3. When I use the EditGeometry, sometimes I experience a NullReferenceException and my app will crash. I cant seem to catch the exception to let my app exit gracefully and I cant seem to debug it because it has something to do with the esri dll. The most I can see in the call stack is it crashes at the point of EditGeometry.UpdateVertexPosition (i think it's a private function in the dll?) and normally occur after EditGeometry.Action == EditCanceled (but I did not explicitly call EditCancel())

The exception is random and occurs on and off which is a headache. Please help. Thanks