Avatar of giligatech
giligatech

asked on 

On Error Event in cosole application

Hi all,
I created a console application and sometimes it just crash.
Because that my debugging skills using windbg are not "satisfactory",
I was wandering if there is an event that you can call whenever the program crashes
which tells you what line it was and what function (like On_Error in ASP.NET - Global.aspx)
If not, what are my options?

Thank you
.NET ProgrammingC#Visual Basic.NET

Avatar of undefined
Last Comment
abel
ASKER CERTIFIED SOLUTION
Avatar of abel
abel
Flag of Netherlands image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Avatar of abel
abel
Flag of Netherlands image

You seem to compare is to global.asax. The global try / catch proposal does just that: act as the latest "catcher" of errors which is called when no other catches are defined for that error.
Avatar of abel
abel
Flag of Netherlands image

Thanks and great to have been of some help :)
.NET Programming
.NET Programming

The .NET Framework is not specific to any one programming language; rather, it includes a library of functions that allows developers to rapidly build applications. Several supported languages include C#, VB.NET, C++ or ASP.NET.

137K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo