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
2 answers

Determining length for an array allocation

This is the snippet of code that I'm puzzled about. I'm checking for how long an incoming string is. I've appended * in order to have a sentinel value to stop the while loop. Yet, I'm consistently getting a length value that is inclusive of the *…
Heather T
  • 323
  • 1
  • 10
  • 20
0
votes
1 answer

Trying to handle the file existence in vb.net vs2010

Have a piece of logic that looks like that: Dim fInfo As New FileInfo(LocationDir & Filename) If Not fInfo.Exists Then Console.WriteLine("File does not exist." & Filename) Throw New Exception("File does not exist." & Filename) End If That…
user3235631
  • 79
  • 3
  • 14
0
votes
3 answers

read violation while accessing to a vector which is for an object

this is a c++ question. I'm working on an OpenGL project. wrote a simple OBJ loader. I have a class called Mesh. By getting an object pointer called monkey Mesh* monkey; and calling function: load_obj("Monkey.obj", monkey); I want to read from…
0
votes
0 answers

Possible to capture unhandled exception in win32 user application ? (setunhandledexceptionfilter())

I spent much time to capture unhandled exceptions in my process (win32) using API so called setunhandledexceptionfilter(). But I haven't captured exception when WER(Windows Error Report - which is well know for DR.watson) is showed. Is…
raphael
  • 1
  • 4
0
votes
2 answers

The exception is not caught in vc++

In my application I got an exception message. This occurs when I throw false when an if() condition fails. The error message I got is as below Unhandled exception at 0x74fe812f in MyApp.exe: Microsoft C++ exception: bool at memory location…
Nelson T Joseph
  • 2,683
  • 8
  • 39
  • 56
0
votes
1 answer

Unhandled exception at 0x5DF9CCC8

when i run this code everything goes fine when writing , but when i press 2 to read it goes well and read everything just fine but when it it finishes reading the file (show function) it pops up a problem says " Unhandled exception at 0x5DF9CCC8 "…
BishoyM
  • 561
  • 1
  • 7
  • 16
0
votes
1 answer

Unhandled exceptions in infinite loop

I have a problem that I cannot seem to solve for a project. Consider this code: namespace TestApp { class Program { static void Main(string[] args) { AppDomain.CurrentDomain.UnhandledException += new…
Dan Hass
  • 77
  • 8
0
votes
1 answer

c# unhandled exceptions catcher

We have a VS2013 solution (originally a VS2012 solution, but that isn't relevant) that contains multiple projects. Some class libraries. Some MVC apps. Some WinForm apps. Some comandline apps. What we want is a class that we can use across all…
Dan Hass
  • 77
  • 8
0
votes
0 answers

Unhandled exception error, ON SOME computers

Need help, I get unhandled exception on friends computer but not mine. See the end of this message for details on invoking just-in-time (JIT) debugging instead of this dialog box. ************** Exception Text ************** …
0
votes
3 answers

C# Why I get "Unhandled Exception: System.FormatException: Input string was not in a correct format." when I use TryParse?

I get "Unhandled Exception: System.FormatException: Input string was not in a correct format." but actually I catch the Exception with TryParse. using System; using System.Linq; using System.Collections.Generic; class MinAndMax { static void…
Beatris Boneva
  • 40
  • 1
  • 1
  • 4
0
votes
1 answer

unhandled exception when comparing 2 char values vb.net

I am writing a program that will load a text file into a textbox, find lines with specific criteria, save them to a class array called Questions with the properties(Question, CorrectAnswer, FalseAnswer1, FalseAnswer2, etc...) and then do some…
Peter Black
  • 69
  • 1
  • 9
0
votes
1 answer

Unhandled exception in try-catch

try { list = from XElement e in d.Descendants(wix + "File") where e.Attribute("Name").Value.Contains(temp.Name) && e.Parent.Parent.Attribute("Name").Value.Contains(temp.Directory.Name) select e; } catch…
Christopher B. Adkins
  • 3,499
  • 2
  • 26
  • 29
0
votes
1 answer

Selenium: UnhandledAlertException was unhandled

I have been running automation testing on selenium (C#) for quite some time now, and I recently upgraded to version 2.37 with Chrome Driver 2.4. After this upgrade, for some reason every time an open dialog causes a test to fail, the exception is…
marchocolate
  • 53
  • 1
  • 2
  • 10
0
votes
1 answer

Unhandled exception in Visual Studio while using Open CV

I'm new to Visual Studio. I keep getting an error: Unhadled exception occurred at [some memory location] in Project1.exe The memory location keeps changing each time I hit debug. I have tried really very simple codes, but still I keep getting this…
MollieVX
  • 311
  • 1
  • 3
  • 10
0
votes
1 answer

Unhandled exception, doesn't look like anything is wrong

header file I am using, teacher provided it so I doubt the error lies in here but it's throwing the unhandled exception template class Node { private: ItemType item; Node *next; public: Node(); …