title: how to get the line where the program crashes
body: <p>I have a c++ program and I want to display  the line number of where the program crashes in the console ! I'm using VS2010! is that even possible? I use opencv , and opencv does it ! 
  any idea?</p>