title: Determine which line causes a vb.net program to crash
body: <p>I have created a vb.net program and released it to the customer. They are running the exe and at times the program crashes unexpectedly and display the message: "... has encountered a problem and needs to close" </p>
  
  <p>I know I should have added code to handle the exception, but is there a way that I can find out which line in the program caused the error? What is generally as good way to track errors in a program after it has been released?</p>
  
  <p>Thanks</p>