473,379 Members | 1,170 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,379 software developers and data experts.

Application.SetUnhandledExceptionMode(UnhandledExc eptionMode.Automatic);

Hi,

The inelisence description of "UnhandledExceptionMode.Automatic" explains
this:

Route all exceptions to the System.Windows.Forms.Application.ThreadException
handler, unless the application's configuration file specifies otherwise.

How can I configure unhandled exception behavior in configuration file?

I tried to use google to find the app.config settings for unhandled
exceptions, but I couldn't find any. What is the best way to find app.config
settings?

Thank you,
Max

Mar 27 '06 #1
2 4528
Hi Max,

I think the application's configuration file setting means adding a
<legacyUnhandledExceptionPolicy> tag in the app.config file. Here I got two
articles talking about this element. Please check the following links for
more information

http://msdn.microsoft.com/msdnmag/is...ault.aspx?side
=true#b

http://www.julmar.com/blog/mark/Perm...ca1-be1a-c422f
3cf1f1b.aspx

Hope that helps. If anything is unclear, please feel free to let me know.

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."

Mar 27 '06 #2
The inelisence description of "UnhandledExceptionMode.Automatic" explains
this:

Route all exceptions to the System.Windows.Forms.Application.ThreadException
handler, unless the application's configuration file specifies otherwise.

How can I configure unhandled exception behavior in configuration file?


http://msdn2.microsoft.com/en-us/lib...a3(VS.80).aspx
(Debuggable attribute must be present, and also JIT debugger must be
registered in Registry for this to work)

Note that you can achieve the same (and in more predictable way)
using Application.SetUnhandledExceptionMode(UnhandledExc eptionMode.ThrowException)

Regards,
Oleg
[VC++ MVP http://www.debuginfo.com/]


Mar 27 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

13
by: BK | last post by:
Can someone point me to a code sample that illustrates executing long running tasks (asynchronous) from a web application in ASP.NET? I assume that Web Services might come into play at some point,...
0
by: cpavon | last post by:
Hello everyone, I am fairly new to MACT, I am currently trying to parse the oResponse.Body to retrive a dynamic values...store in an array and then randomly post those values. Does anyone...
1
by: Mark | last post by:
Here is a description of automatic client reroute in DB2 V8.2 "The automatic client reroute feature allows client applications to recover from a loss of communication with the server so that they...
2
by: Trygve Lorentzen | last post by:
Hi, I'm developing an app with automatic version checking and updating. It must also track what version is installed for each customer in our customer database. I have made a small client to...
1
by: Pavils Jurjans | last post by:
Hello, I have a couple of unclear questions about ASP.NET sessions: First, I'd like to have some way to see how many sessions currently are running on the certain application, and, possibly, have...
4
by: Ray | last post by:
Does anyone out there have experience with using Db2 8.2 with a program called MISys (also known as ACCPAC). I am having some problems with the application running exteremly slow on workstations...
58
by: Jorge Peixoto de Morais Neto | last post by:
I was reading the code of FFmpeg and it seems that they use malloc just too much. The problems and dangers of malloc are widely known. Malloc also has some overhead (although I don't know what is...
4
by: mariajo08 | last post by:
Hello, I have a problem..... I have an application that shows me an icon in the systray, but I want to communicate this application with a service, so, when I run the service, this application...
5
by: giddy | last post by:
hi, I made this little crash reporter system for my project. It works by getting hooked up to the Application.ThreadException event. If an unhandled exception occurs , it logs it and then puts...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.