Solved! Go to Solution.
Still need help.
This is the exception that I got when I changed it over from user handled:
System.Runtime.InteropServices.COMException {"The operation was attempted on an empty geometry."}
Can you post more of the code?
Are you using the debugging tools to put in breakpoints so that you can evaluate the values of ToPoint, FromPoint, and pLine? In looking through your code, I also notice that you don't declare many of your variables. This can come back to haunt you later.
I've officially been computer programming for two weeks, and I have no idea how to display the values of Point or Line objects/data types.
I have been using breakpoints and debugging tools to step through the code, which is how I hit the error.
Also, It's not my code, I'm just trying some minimal fixes to get it working again. All the code I've written so far has been explicitly declared.