Build addin and double click addin to install in ArcMap
Start ArcMap
In Visual Studio attach to ArcMap process
In ArcMap add a world background data source
Display Circle tab on Distance and Direction addin UI panel
Click Map Point tool
Click on map to create a point
Click in Radius/Diameter text box
Enter a 1 and then keep adding zeros
Result: At 100000000 upwards an exception is thrown (after continuing in Visual Studio, ArcMap continues to run ok but exception should be handled):
System.Runtime.InteropServices.COMException was unhandled by user code
HelpLink="Geometry.hlp"
HResult=-2147220982
Message=The parameter is (or has an element that is) the wrong kind of geometry.
Source="esri.Polyline"
ErrorCode=-2147220982
StackTrace:
at ESRI.ArcGIS.Geometry.PolylineClass.ConstructGeodesicCircle(IPoint CenterPoint, ILinearUnit LinearUnit, Double Radius, esriCurveDensifyMethod densifyMethod, Double densifyParameter)
at ArcMapAddinDistanceAndDirection.ViewModels.CircleViewModel.UpdateFeedbackWithGeoCircle() in c:\RWJ\EsriInc\githubclone\distance-direction-addin-dotnet\source\DistanceAndDirection\ArcMapAddinDistanceAndDirection\ArcMapAddinDistanceAndDirection\ViewModels\CircleViewModel.cs:line 412
at ArcMapAddinDistanceAndDirection.ViewModels.CircleViewModel.set_DistanceString(String value) in c:\RWJ\EsriInc\githubclone\distance-direction-addin-dotnet\source\DistanceAndDirection\ArcMapAddinDistanceAndDirection\ArcMapAddinDistanceAndDirection\ViewModels\CircleViewModel.cs:line 304
InnerException:
Procedure:
Result: At 100000000 upwards an exception is thrown (after continuing in Visual Studio, ArcMap continues to run ok but exception should be handled):
System.Runtime.InteropServices.COMException was unhandled by user code HelpLink="Geometry.hlp" HResult=-2147220982 Message=The parameter is (or has an element that is) the wrong kind of geometry. Source="esri.Polyline" ErrorCode=-2147220982 StackTrace: at ESRI.ArcGIS.Geometry.PolylineClass.ConstructGeodesicCircle(IPoint CenterPoint, ILinearUnit LinearUnit, Double Radius, esriCurveDensifyMethod densifyMethod, Double densifyParameter) at ArcMapAddinDistanceAndDirection.ViewModels.CircleViewModel.UpdateFeedbackWithGeoCircle() in c:\RWJ\EsriInc\githubclone\distance-direction-addin-dotnet\source\DistanceAndDirection\ArcMapAddinDistanceAndDirection\ArcMapAddinDistanceAndDirection\ViewModels\CircleViewModel.cs:line 412 at ArcMapAddinDistanceAndDirection.ViewModels.CircleViewModel.set_DistanceString(String value) in c:\RWJ\EsriInc\githubclone\distance-direction-addin-dotnet\source\DistanceAndDirection\ArcMapAddinDistanceAndDirection\ArcMapAddinDistanceAndDirection\ViewModels\CircleViewModel.cs:line 304 InnerException: