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
0
votes
1 answer

Receiving error message: System.Reflection.TargetException: Non-static method requires a target

I'm using Visual Studio 2013 Update 2 and I'm getting an unhandled exception in one of my controllers and I can't figure where it's coming from. This is the controller: using System; using System.Collections.Generic; using System.Linq; using…
tdrsam
  • 527
  • 1
  • 8
  • 28
0
votes
2 answers

Unhandled exception in a text based game

I am attempting to make a simple text based game. When the program reaches return 0, I get an unhandled exception...access violation. When I comment out the generate board and display board functions, I do not get the error. Let me know if see…
0
votes
0 answers

'CrystalDecisions.Shared.SharedUtils' threw an exception?

I'm working on a project. the databsae is in the server not in my local. When I run my code I get the error message: "CrystalDecisions.Shared.SharedUtils" threw an exception.I receive this error at this line of code: this.crystalReportViewer1 = …
0
votes
0 answers

Unhandled Exception when project built

I am getting Unhandled Exception error randomly in my project while taking fingerprints. Sometimes when I clean and rebuild my project problem being solved. But when I rebuild again problem appear. How can I handle this problem? Here is the error…
Koray
  • 373
  • 4
  • 12
0
votes
1 answer

Is it possible to add additional information for crashes handled by Xamarin.Insights analytics framework

I have an xamarin.android with xamarin.insights intergrated. Right now every time I handle error manually (try/catch) I'm adding information about environment (staging/production): try { ExceptionThrowingFunction(); } catch (Exception…
Mando
  • 11,414
  • 17
  • 86
  • 167
0
votes
1 answer

Problem using UnhandledException in Windows Mobile app

I have a Windows Mobile program that accesses an attached device through a third-party DLL. Each call to the device can take an unknown length of time, so each call includes a timeout property. If the call takes longer than the specified timeout…
MusiGenesis
  • 74,184
  • 40
  • 190
  • 334
0
votes
0 answers

C++ Unhandled exception after main.cpp returns and the executable wants to exit: location 0xfeeefef6

I'm receiving the error message shown on the following figure. This error pops up at the very end of my C++ code when main.cpp goes beyond return 0; it means just when the executable wants to exit. I'm not sure why this error is happening. Does…
Megidd
  • 7,089
  • 6
  • 65
  • 142
0
votes
1 answer

Unhandled exception at 0x77662D37 (ntdll.dll) when reading png image with dimensions greater than 200x200 px

I'm using libpng to read png files in Visual C++. The program works fine when reading image with dimensions 195x195px or less but crashes for higher dimensions. This is the error message: First-chance exception at 0x77662D37 (ntdll.dll) in…
Jayr
  • 3
  • 1
  • 3
0
votes
2 answers

Unhandled exceptions - forcing program exit

I have the following example: void Unhandled() { cout << "Unhandled exception!" << endl; // exit(-1); } int main(){ float a, b; set_terminate(Unhandled); try{ cout << "Input two numbers: "; cin >> a >> b; if…
Tracer
  • 2,544
  • 2
  • 23
  • 58
0
votes
0 answers

How I can handle exception when it caused if I am not in debugging

My Windows Phone 8.1 application is unexpectedly closing when it starts. I cannot find exception because application is closing when I am not in debugging mode. When VS is attached to phone's app process - no problems, no exceptions... Any idea…
0
votes
3 answers

How to eliminate Unhandled Exception dialog produced by 3rd party application

I'm working with a 3rd party executable that I can't recompile (vendor is no longer available). It was originally written under .Net 1.1 but seems to work fine under later versions as well. I launch it using Process.Start from my own application…
CRM
  • 11
  • 1
0
votes
3 answers

Handling maximum request length exceeded

I would like to know, which is the best way to handle "maximum request length exceeded" error in my application. I have asp.net application in which the user is allowed to upload file(pdf or image). I would like to handle the error. I did some…
Arti
  • 2,993
  • 11
  • 68
  • 121
0
votes
1 answer

Not showing up crashes in crashes & ANR Google developer console

I have integrated with Flurry. Currently My app is on play store. In developer console it is only displaying only one crash. Where in Flurry it displays more crashes. Would it happen that crashes will not show up on google developer console and…
keen
  • 3,001
  • 4
  • 34
  • 59
0
votes
2 answers

Non-deterministic multithread test

I have an extension method. Here it is: public static void BeginInvokeWithAutoEnd(this EventHandler handler, object sender, EventArgs eventArgs) { var buffer = handler; buffer.BeginInvoke(sender, eventArgs, buffer.EndInvoke, null); } To…
dmigo
  • 2,849
  • 4
  • 41
  • 62
0
votes
2 answers

Cant catch unhandled exception message in c# WPF

I Use the AppDomain.UnhandledException Event to catch unhandled exceptions. I use a MessageBox.Show() instead of Console.WriteLine in the example; public static void Main() { AppDomain currentDomain = AppDomain.CurrentDomain; …
clamchoda
  • 4,411
  • 2
  • 36
  • 74