473,698 Members | 2,888 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

WHAT?? Exception handling somehow disabled in my environment?

Hi, right now, something is very strange...
The .net exception handler is disabled!! When I throw an exception or
if I try to use an object that is not set ( = null) I do not receive
any exceptions at all.

I tried to use the Application.Thr eadException event but nothing
happens, the execution just stops and the next message in the message
queue is processed...

Does anyone know what's wrong???

Regards
/Magnus

Sep 20 '06 #1
2 1496
Hi Magnus,

Sometimes exceptions are caught by windows, and windows silently swallows
the exception.
Are the exceptions related to control events?
On Wed, 20 Sep 2006 08:30:32 +0200, <La************ *@gmail.comwrot e:
Hi, right now, something is very strange...
The .net exception handler is disabled!! When I throw an exception or
if I try to use an object that is not set ( = null) I do not receive
any exceptions at all.

I tried to use the Application.Thr eadException event but nothing
happens, the execution just stops and the next message in the message
queue is processed...

Does anyone know what's wrong???

Regards
/Magnus


--
Happy Coding!
Morten Wennevik [C# MVP]
Sep 20 '06 #2
Hi Morten,

It seems someone swallows all kind of events. Both null reference
exceptions and user defined exceptions. I threw a ApplicationExce ption
with the same result... or lack of result. Pretty dangerous!!
The same result in release mode and when I started the app from the
file explorer...

Any ideas?

Regards
/Magnus

Morten Wennevik wrote:
Hi Magnus,

Sometimes exceptions are caught by windows, and windows silently swallows
the exception.
Are the exceptions related to control events?
On Wed, 20 Sep 2006 08:30:32 +0200, <La************ *@gmail.comwrot e:
Hi, right now, something is very strange...
The .net exception handler is disabled!! When I throw an exception or
if I try to use an object that is not set ( = null) I do not receive
any exceptions at all.

I tried to use the Application.Thr eadException event but nothing
happens, the execution just stops and the next message in the message
queue is processed...

Does anyone know what's wrong???

Regards
/Magnus

--
Happy Coding!
Morten Wennevik [C# MVP]
Sep 20 '06 #3

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

Similar topics

0
14710
by: Maverick | last post by:
Hello all, I read some good reviews about jakarta HTTPClient about its session and cookies management system and fancied giving it a try as a learning exercise but somehow I don't seem to be able to get it to work properly. I'm basically trying to connect to this site http://s1.starkingdoms.com/scripts/main.php I am able to get past the authentication login page onto the next screen but I then can't proceed any further because of...
1
5787
by: Babu | last post by:
Hi, I am a Perl newbie and have a doubt on Perl exception handling. My understanding regarding exception handling is execute a piece of code, if any exception occurs, handle the exception and proceed as if the error never occurred at all. So code would look like Eval { # do something }; if ($@)
7
6000
by: Noor | last post by:
please tell the technique of centralize exception handling without try catch blocks in c#.
1
1971
by: Noor | last post by:
Hi all, I am trying to catch all types of exceptions from a app regardless of whether it is in debugger mode( VS development environment) or run the.exe file outside the IDE. My App contains the thousand of classes and I do not want to use the Try Catch block in each class. Because it is logically similar to GOTO statement. I want to prevent exception from being swallowed.
6
1711
by: Nick Reeves | last post by:
While developing the below code I noticed that exceptions were not working as expected. An exception is thrown inside an XML import DLL and not being caught inside the Main() code fragment, creating an unhandled exception inside "theUI". Would anybody know why this is happening? I thought the general rule for exceptions handling was the exception is passed up the stack until the application handles it or the program terminates? ...
4
5133
by: Ele | last post by:
When Exception handling disabled compiler still spits out "C++ exception handler used." Why is that? Why does it ask for "Specify /EHsc"? Thanks! c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xstring(1453) : warning C4530: C++ exception handler used, but unwind semantics are not enabled. Specify /EHsc
2
5647
by: nunya5200-bidness | last post by:
I hope someone may have some insight to this issue... I would like to know how to properly implement exception handling using the ObjectDataSource control. Specfically, I am doing an insert using an object that calls a web service to accomplish this. The service returns a message to the Insert method that indicates that the insert can't be accomplished because it is trying to insert a duplicate key value. So, I simply want to raise...
4
2400
by: Frank | last post by:
Hi, I made a handler for unhandled errors. But before that is executed, VB.NET gives me the standard error window. In VB6 there was a setting (errortrapping) about handling errors in the design environment and classes, which should prevent the before mentioned behaviour. Does VB.NET have a setting like it? Or is there something else? Thanks in advance Frank
1
2332
by: Paramveer.Singh | last post by:
Hi! I am a developer working for a company which typically deploys apps on Oracle. We would like to move to postgres for obvious reasons. However, most of  our legacy apps use the exception handling support provided by PL/SQL. Instead of porting each of these procedures by hand, we would like to add exception handling support to pgSQL if possible.
0
8611
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 synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9170
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8904
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7741
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5867
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4372
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 the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4624
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3052
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
2
2341
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.