Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / WinForm General / January 2007

Tip: Looking for answers? Try searching our database.

Creating an exception viewer control

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
John Pouliezos - 29 Jan 2007 18:59 GMT
Hi... any ideas on how to get a grip on the winforms control used by the
.net to show the details of an exception ?
Oliver Sturm - 30 Jan 2007 16:50 GMT
Hello John,

>Hi... any ideas on how to get a grip on the winforms control used by the
>.net to show the details of an exception ?

What makes you think there's such a control? Don't get me wrong, I don't
have any specific information that says there isn't, only I've never heard
of one.

(I also wasted a few days in the past writing my own totally fantastic
exception visualization control, so I would be interested to hear it if
there was one readily available <g>.)

               Oliver Sturm
Signature

http://www.sturmnet.org/blog

Otis Mukinfus - 30 Jan 2007 23:44 GMT
>Hi... any ideas on how to get a grip on the winforms control used by the
>.net to show the details of an exception ?

As Oliver said in his post, I don't think there is one, but as he also said you
can build one.  All it has to have is a read only multi line text box (for
scrolling) and an OK button, unless you want to do more with it than display it
and allow the user to copy it.  It's nice to be able to ask them to copy the
stack trace and send it to you in an email.

Good luck with your project,

Otis Mukinfus
http://www.arltex.com
http://www.tomchilders.com
Oliver Sturm - 30 Jan 2007 23:56 GMT
Hello Otis,

>As Oliver said in his post, I don't think there is one, but as he also
>said you
>can build one.  All it has to have is a read only multi line text box...

Mine is actually quite a lot more complex - it can display an exception
with nested InnerExceptions and it uses Reflection to analyze the
exception class for additional properties, which it also tries to display
as well as it can. To visualize all this information, it has a
"multi-level" dialog with a default page for the average end user and
several technical detail pages that can be activated, for example if a
support engineer instructs the end user to do so. And yes, copying and
pasting is also important - if I remember correctly, I used serialization
to convert the exception, again with all nested information, into an XML
string that can be copied to the clipboard.

I'm sorry, I can't give any of this away... just as a summary of some
ideas. If you (or anyone) want specific help with a certain piece of
functionality I mentioned, feel free to get back to me about it.

               Oliver Sturm
Signature

http://www.sturmnet.org/blog

Otis Mukinfus - 31 Jan 2007 01:05 GMT
>Hello Otis,
>
[quoted text clipped - 18 lines]
>
>                Oliver Sturm

Gosh, Oliver I'm a lot lazier than you ;o)

I do however log all exceptions to a log file that I can ask the user to send
me.  That log file contains the inner exceptions if there are any and using
reflection, a dump of the containing class properties.

I assume that you, like me, do not like to try to guess what the user is trying
to tell me on the phone.  I find the logging to be something I can tell them to
send me instead of having them run the application again just to copy the stack
trace from the dialog.


Good luck with your project,

Otis Mukinfus
http://www.arltex.com
http://www.tomchilders.com

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.