Quote:
quote:Originally posted by iceman90289
was it in C# that you could have code in your program to give you the line and collumn that an error occured? i have an error handler but i do not know where the error is coming from.
|
if your error is a compile error, just double click on the error in Error List window.
and if your error is runtime, you can write a try/catch block and with the exception argumant you can get the details of error
for example
try
{
// your code goes here
}
catch(exception ex)
{
// with ex.StackTrace you can get the error details if
// any error occure in your try block
// note, ex.Message just will give you a string message about
// exception such as "input string was not in a correct format"
// if a format exception was thrown
}