Getting error details

  • Thread starter Thread starter John
  • Start date Start date
J

John

Hi

I am having difficulty figuring out the source of errors in an app that is
delivered to a client. Is there a way that a compiled app can give the
location of the error, such as procedure, line no (if possible) etc.?

Thanks

Regards
 
Hi John,

The contextual information that you are after is available in Debug
compilations but is omitted from Release versions.

It does sound as if the code would benefit from more error handling. ;-)

Regards,
Fergus
 
I put tracing in all of my apps with an option to turn it on and off. This
allows the client to turn it on and go about their business until they hit
an error, but not build up unnecessary logs or performance hits when it's
off. They can then send you the trace log so you can reproduce the steps.

You can also add a "global error handler" so that any exception that bubbles
to the top can be handled gracefully and recorded (logged, give instructions
to user on what to do, or at worst msgboxed).

Example here:

http://samples.gotdotnet.com/quickstart/howto/doc/WinForms/WinFormsAppErrorHandler.aspx


Note if you obfusicate the strack trace isn't going to be worth much.
 
Hi Chris, Justin,

That's a case of talk the Talk <and> walk the Walk.

Regards,
Fergus
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top