Questions tagged [unhandled-exception]

An unhandled exception is an Exception that is thrown by execution but is never caught by the program, which results in a Exception Stack.

An unhandled exception is an Exception that is thrown by execution but is never caught by the program, which results in a Exception Stack.

This could be avoided by catching the exception in a try-catch statement, but it is not always appropriate to catch every possible exception. Sometimes the exception is the result of the client making a mistake rather than something that occurred where it is thrown, therefore the client should be informed of the exception. Most of the time however, it is user friendly to not propagate exceptions.

Read more here.

762 questions
11
votes
2 answers

UnhandledException in WP7

I am getting this weird error when making a WP7 app, and I can not see why. The only output/ error message I get is "UnhandledException: The parameter is incorrect. : : : ProgramName.App" This error occurs randomly, and I do not get any information…
11
votes
4 answers

Unhandled exception when using std::mutex instead of boost::mutex

I try to get rid of some of the boost dependencies in my code and instead use the new C++11 features (Visual Studio 2013). In one of my components I used boost::mutex together with boost::lock_guard and everything worked fine. When I…
Robert Hegner
  • 9,014
  • 7
  • 62
  • 98
11
votes
4 answers

Event message: An unhandled access exception has occurred (IIS 7.5, cannot load website)

I deployed the Nuget source code to my company's web server, but when navigate to the URL, I get the following error (pulled from Event Viewer on the server): Event code: 4011 Event message: An unhandled access exception has occurred. Event time:…
Mike Marks
  • 10,017
  • 17
  • 69
  • 128
11
votes
2 answers

Catch unhandled exceptions from any thread

Edit The answers to this question where helpful thanks I appreciate the help :) but I ended up using: http://code.msdn.microsoft.com/windowsdesktop/Handling-Unhandled-47492d0b#content Original question: I want to show a error message when my…
Tono Nam
  • 34,064
  • 78
  • 298
  • 470
10
votes
4 answers

How can I allow Task exceptions to propagate back to the UI thread?

In TPL, if an exception is thrown by a Task, that exception is captured and stored in Task.Exception, and then follows all the rules on observed exceptions. If it's never observed, it's eventually rethrown on the finalizer thread and crashes the…
Joe White
  • 94,807
  • 60
  • 220
  • 330
10
votes
2 answers

UWP: Unspecified Error - Exception from HRESULT: 0x80004005

I am developing a UWP app in C# and I have attached a handler for Unhandled exceptions that sends us the unhandled exceptions so that we can diagnose them). I am receiving a large amount of System.Exception - Unspecified error (Exception from…
Cristiano Ghersi
  • 1,944
  • 1
  • 20
  • 46
10
votes
1 answer

Unhandled exception

What is the best way to handle an unhandled exception in a WPF application?
Maurizio Reginelli
  • 3,152
  • 2
  • 27
  • 41
10
votes
2 answers

Exception handling with multiple forms

I'm seeing different behavior with exceptions being caught or not being caught when I am debugging vs. when I am running a compiled .exe. I have two forms (Form1 and Form2). Form1 has a button on it which instantiates and calls ShowDialog on…
user216122
9
votes
2 answers

Controller factory receiving request for "favicon.ico"

I've noticed that a request to "favicon.ico" is being passed to my ASP .NET MVC controller factory when using Google Chrome and the Visual Studio Development Server. The controllerType parameter has a value of null which is unsurprisingly resulting…
Ian Warburton
  • 15,170
  • 23
  • 107
  • 189
9
votes
1 answer

C++: Access violation writing location

Using: MSVS2012 Code elemalg.h #include #include #include class ElemAlg { private: std::string difficultlyLevel, question, answerToRead; std::vector questions, answers; std::vector
user3001499
  • 811
  • 4
  • 16
  • 32
9
votes
3 answers

CryptographicException: Padding is invalid and cannot be removed and Validation of viewstate MAC failed

Monitoring my global exception logs this error seems to be impossible to remove no matter what I do, I thought I finally got rid of it but it's back again. You can see a strack trace of the error on a similar post here. Notes about the…
Chris Marisic
  • 32,487
  • 24
  • 164
  • 258
9
votes
2 answers

How to crash a process on Windows-7 without getting the WER dialog?

Is it possible to crash a regular user-mode process on Windows-7 without getting the Windows Error Reporting (WER) dialog? (When and if WER is normally enabled and no specific flags are applied.) Note: I'm not interested in disabling WER, I'm…
9
votes
2 answers

AppDomain UnhandledException

I am working on a C# project and want to make use of the UnhandledException event to catch any exceptions I may have missed in my project (hoping there won't be any but to be on the same side). I make quite a bit of software so I want to make a…
Boardy
  • 35,417
  • 104
  • 256
  • 447
9
votes
1 answer

Win8 - Unhandled exception in Windows.UI.Xaml.dll

I've got some strange behavior while debugging/running my metro app. During drag'n'drop the screen will be refreshed. I'd added some functionality to block binded properties from refreshing while drag'n'drop is in progress. But sometimes the app…
salcosand
  • 2,022
  • 4
  • 24
  • 27
8
votes
3 answers

Attempted to read or write protected memory. This is often an indication that other memory is corrupt

I really do not understand how is this error happening at this code. Please check the code yourself void dispatcherTimer_Tick(object sender, EventArgs e) { string srUrl = lstLocalIndex[irLocalIndex] +…
Furkan Gözükara
  • 22,964
  • 77
  • 205
  • 342
1 2
3
50 51