473,524 Members | 3,001 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 4534
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
2813
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, but I'm not sure how to get started. For example, I have an application that, upon a user initiating through a button or link click, will go out...
0
2116
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 have any sample code on how to parse the oResponse.Body? This is what I have so far but I cannot seem to get the value I'm trying to pick up.
1
3813
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 can continue to work with minimal interruption. After a loss of communication, the client application attempts to reconnect to the server. If this...
2
1851
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 fetch updated file(s) from the net and copy over the old files. I figured this must be done since the program itself will be read/write locked as long...
1
1231
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 some way to peek in the data of these sessions. If there is no such utility for IIS, perhaps there is some API that I could use to write a...
4
2443
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 throughout my office. One of the more accessed tables, which only has 3000 rows, take almost 30 seconds to open through their application. MISys...
58
4609
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 the overhead of automatic variable sized arrays, I suspect it is smaller than that of malloc), although I'm not too worried about it. I was...
4
1962
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 automatic runs too... What can I do?? and How...???
5
3256
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 it on my ftp account. I tested it out and it works perfectly , I test it by Add : "throw new Exception("Test");"
0
7327
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7248
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7598
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
1
5167
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3308
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3301
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1694
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
868
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
537
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.