TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Ian Gorse
NA
5
2k
Program no longer crashes in Visual C# express
May 30 2013 6:56 AM
Hi,
It's usually a dream come true when my software never crashes however I have a problem where Visual Studio C# express does not jump into the debugger when an error has occured when developing my software.Simple example
private
void
Form1_Load(
object
sender,
EventArgs
e)
{
String
path =
Application
.StartupPath +
"\\invites.xml"
;
String
data = System.IO.
File
.ReadAllText(path);
MessageBox
.Show(
"HERE"
);
}
The invites.xml does not exist on my system, so when I run the program using the IDE, I expect it to crash on the String data... line and give me a chance to debug.
What is happening though, is that when I run the program, the applications form is shown. Completely ignoring the MessageBox line, and completely ignoring the fact that the file does not exist. This is becoming a nightmare to code with as I can't tell if I have had a crash in the application.
If I run the executable from the bin directory manually however, I get the normal unhandled exception dialog stating the file does not exist.
Have I mistakenly turned off something in the Visual Studio Express settings that is causing this?
Thanks
Reply
Answers (
6
)
refactoring code in visual studio
Datagridview