473,491 Members | 2,221 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

SetUnhandledExceptionMode

Hello,

I've encountered a problem and I hope someone will be able to help.

I have a C# application running in IE in the following way:
IE loads an C# activeX that run my C# application.
My application registered to Application.ThreadException event but I
found
that some exceptions are not cought by my handler.
I used Application.SetUnhandledExceptionMode in my C# activeX's static
constructor (this way I'm using this method before any control handle
is
being created). Till here everything is great! all exceptions were
cought by
my handler.

Now to my problem: I installed on my IE a self made add-in (some tool
bar)
written in C#.
The add-in is created when IE start running.
After IE start running, I typed my URL (the one that runs the ActiveX
from
above) and my static constructor throws an exception when calling:
SetUnhandledExceptionMode. The reason: A control handle was created (my
IE
add-in).

How can I bypass this problem? my application is an application that is

planned to be installed on many machines which some of them (by nature)
will
have some .NET add-ins installed on their IE.

I need to SetUnhandledExceptionMode because I have to catch all
exceptions
but calling the method SetUnhandledExceptionMode when there is a
control
handle on the macine causes an exeption.

Thanks,
Burgazon

Dec 14 '06 #1
0 1743

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

Similar topics

1
1072
by: alegon | last post by:
How to catch the windows exception that shows a window with the name of the executable program and a messege saying : " has encounterd a problem and needs to close. We are sorry for the...
8
3754
by: Michael Bray | last post by:
I'm writing a library to provide plugin capability to my applications. It does this by loading DLL's into a new AppDomain for each plugin that is loaded. Now obviously when I write a plugin, I...
2
4532
by: Maxwell2006 | last post by:
Hi, The inelisence description of "UnhandledExceptionMode.Automatic" explains this: Route all exceptions to the System.Windows.Forms.Application.ThreadException handler, unless the...
16
2516
by: Chuck Cobb | last post by:
I'm implementing a centralized exception handling routine using the Enterprise Library Exception Management Application Block. I trap all unhandled exceptions to one place using the following...
1
3606
by: Matthew Townsend | last post by:
Does anyone know how to use ReportFault or the new WER API from within .net. I know I can use pinvoke but I am wondering if there is support already for it in the .net framework. It seems like...
6
4781
by: bjornms | last post by:
The application i build in C#.net is crashing once a month. I can't reproduce the crash. Is there a way to track down where the program crashes, without putting logging everywhere in the code?...
1
1560
by: BLUE | last post by:
I'm using CF 1.x (VS 2003) on a Windows CE 4.2 device. This classes ad methods are not present: Application.ThreadException ThreadExceptionEventHandler Application.SetUnhandledExceptionMode...
2
1360
by: John Bowman | last post by:
Hi All, I've been reading about Application.ThreadException, Application.SetUnhandledExceptionMode & AppDomain,CurrentDomain.UnhandledException. I'm trying to determine if there is a mechanism...
6
4369
by: Steve | last post by:
Hi All I have a windows forms Application (SAM) in vb.net 2008 using .net framework V2 One and only one customer out of 30 customers is getting errors daily where they have to close and...
0
7115
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,...
0
6978
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...
0
7154
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7190
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
4881
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...
0
4578
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3086
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...
0
1392
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 ...
1
633
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.