In the ThinkGeo Map Suite Sample Applications, there is a 'Track and edit shapes' in the 'Editing Feature Layers' part.
This sample shows how the user can draw things into the TrackOverlay and how the user can then edit them after pressing the button with the pencil on it.
When in this edit mode, the user can remove vertex points by double clicking on them. This works fine, until the shape has too few vertices (a line needs at least two, a polygon at least three). In that case the program crashes at ThinkGeo.MapSuite.DesktopEdition.EditInteractiveOverlay.CalculateDragControlPointsCore(Feature feature)
I understand that the program can't draw a line from one point, but it seems strange that it has to crash in default mode. Anyways, any help with fixing this behavior is appreciated. What/how can I best override?
It should be a bug in release version but the development version is ok. Now, we have fixed it in the release version, please get the latest version and then have a try.
If any questions, please feel free to let us know. Thanks, Johnny
Thanks for your query, we have fixed this in WPF too, would you please get the latest dll(7.0.269.0 or 7.0.0.269 still in build will be available in hours).
if you have any more question , please feel free to let us know.
I had a follow up question to this. I am using the 7.0 WPF Evaluation Edition and am getting a similar error. The error I am getting is a NullReferenceException when I am removing vertices. It seems to happen almost randomly. Sometimes it is when I am removing 1 vertex, others 5 vertices, and this last one was after removing a dozen vertices.
Is the bug that you’re referring to in this post the cause for this? I just want to double-check before I go about rewriting my code.
Thanks for your query, would you please get the latest development build(7.0.289.0 still in build, will be available in hours) and check if the problem is still there?