How can I capture the events leading to my windows application crashing?
would a big try catch around the Application.Run () do the job? in my head
that launches a thread and if that thread crashes somehow my try catch wont
do crap, maybe im wrong.
So what do you guys do to capture a possible application crash? 4 1980
It won't catch your unhandled exceptions. But you can do something like
this:
MyExceptionHand ler handler = new MyExceptionHand ler();
Application.Thr eadException += new ThreadException EventHandler(ha ndler
..Application_U nhandledExcepti on);
Application.Run ( new Form1());
And in MyExceptionHand ler just create a method with this signature:
public void Application_Unh andledException (object sender,
ThreadException EventArgs e)
HTH,
/m
"cs" <[rem]casolorz[rem]@hot[rem]mail.com> wrote in message
news:%2******** ********@TK2MSF TNGP10.phx.gbl. .. How can I capture the events leading to my windows application crashing? would a big try catch around the Application.Run () do the job? in my head that launches a thread and if that thread crashes somehow my try catch
wont do crap, maybe im wrong. So what do you guys do to capture a possible application crash?
thank you very much, that is exactly what I was looking for.
"Muscha" <mu****@no.spam .net> wrote in message
news:et******** ******@TK2MSFTN GP09.phx.gbl... It won't catch your unhandled exceptions. But you can do something like this:
MyExceptionHand ler handler = new MyExceptionHand ler();
Application.Thr eadException += new ThreadException EventHandler(ha ndler .Application_Un handledExceptio n);
Application.Run ( new Form1());
And in MyExceptionHand ler just create a method with this signature: public void Application_Unh andledException (object sender, ThreadException EventArgs e)
HTH, /m
"cs" <[rem]casolorz[rem]@hot[rem]mail.com> wrote in message news:%2******** ********@TK2MSF TNGP10.phx.gbl. .. How can I capture the events leading to my windows application crashing? would a big try catch around the Application.Run () do the job? in my
head that launches a thread and if that thread crashes somehow my try catch wont do crap, maybe im wrong. So what do you guys do to capture a possible application crash?
If you have a VisualStudio IDE then a simple way is
Attach the VisualStudio debugger to your application. And after that select
Debug->Exceptions (Ctrl+Alt+E). Then you can
select from a range of exceptions that you would want the debugger to
track. And every time an exception is thrown and if it is the type you are
interested then the debbuger will break at the point where the exception is
being thrown. If you are not sure about what exception to capture you can
"check" the top level "Common Language Runtime Exceptions" and your
debugger will break for all the exceptions that are encountered.
-------------------- From: "cs" <[rem]casolorz[rem]@hot[rem]mail.com> Subject: capturing crash Date: Tue, 4 Nov 2003 16:33:25 -0600 Lines: 7 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Message-ID: <#V************ **@TK2MSFTNGP10 .phx.gbl> Newsgroups: microsoft.publi c.dotnet.langua ges.csharp NNTP-Posting-Host: ppp-67-64-23-92.dsl.wchtks.s wbell.net 67.64.23.92 Path: cpmsftngxa06.ph x.gbl!TK2MSFTNG P08.phx.gbl!TK2 MSFTNGP10.phx.g bl Xref: cpmsftngxa06.ph x.gbl microsoft.publi c.dotnet.langua ges.csharp:1967 51 X-Tomcat-NG: microsoft.publi c.dotnet.langua ges.csharp
How can I capture the events leading to my windows application crashing? would a big try catch around the Application.Run () do the job? in my head that launches a thread and if that thread crashes somehow my try catch wont do crap, maybe im wrong. So what do you guys do to capture a possible application crash?
Rakesh, EFT.
This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at http://www.microsoft.com/info/cpyright.htm
thanks but I actually wanted to capture these exceptions on product rather
than on development.
"Rakesh Namineni[MSFT]" <ra******@onlin e.microsoft.com > wrote in message
news:wg******** ******@cpmsftng xa06.phx.gbl... If you have a VisualStudio IDE then a simple way is
Attach the VisualStudio debugger to your application. And after that
select Debug->Exceptions (Ctrl+Alt+E). Then you can select from a range of exceptions that you would want the debugger to track. And every time an exception is thrown and if it is the type you are interested then the debbuger will break at the point where the exception
is being thrown. If you are not sure about what exception to capture you can "check" the top level "Common Language Runtime Exceptions" and your debugger will break for all the exceptions that are encountered.
--------------------From: "cs" <[rem]casolorz[rem]@hot[rem]mail.com> Subject: capturing crash Date: Tue, 4 Nov 2003 16:33:25 -0600 Lines: 7 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Message-ID: <#V************ **@TK2MSFTNGP10 .phx.gbl> Newsgroups: microsoft.publi c.dotnet.langua ges.csharp NNTP-Posting-Host: ppp-67-64-23-92.dsl.wchtks.s wbell.net 67.64.23.92 Path: cpmsftngxa06.ph x.gbl!TK2MSFTNG P08.phx.gbl!TK2 MSFTNGP10.phx.g bl Xref: cpmsftngxa06.ph x.gbl
microsoft.publi c.dotnet.langua ges.csharp:1967 51X-Tomcat-NG: microsoft.publi c.dotnet.langua ges.csharp
How can I capture the events leading to my windows application crashing? would a big try catch around the Application.Run () do the job? in my head that launches a thread and if that thread crashes somehow my try catch
wontdo crap, maybe im wrong. So what do you guys do to capture a possible application crash?
Rakesh, EFT.
This posting is provided "AS IS" with no warranties, and confers no
rights. Use of included script samples are subject to the terms specified at http://www.microsoft.com/info/cpyright.htm This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Tony Gahlinger |
last post by:
I'm using my browser (Mozilla/5.0 Linux i686 Gecko/20031007 Firebird/0.7)
to do some client-side image processing. I want to capture the sequence of
coordinates a user clicks on in xxx.jpg in the following html
<a href="#"><IMG SRC="xxx.jpg" ISMAP></a>
and save these to a file for later handling. The coordinates appear on
the bottom left of the window as I move the mouse, so I know they're
being passed around somehow, but I haven't...
|
by: Jay Xx |
last post by:
I have an IFrame in design mode. I've tried a bunch of things to
capture key presses in that IFrame, but I can't seem to get it. I can
capture key presses outside the IFrame fine. I have this problem in
Firefox, not IE.
I do know it's possible because Blogger.com's rich text editor does it,
but their code is cryptic and separated into like 20 files, so I'm
going through hell trying to decipher it.
(I need to capture the keypress in order...
|
by: Joerg Schuster |
last post by:
Hello,
Python regular expressions must not have more than 100 capturing
groups. The source code responsible for this reads as follows:
# XXX: <fl> get rid of this limitation!
if p.pattern.groups > 100:
raise AssertionError(
"sorry, but this version only supports 100 named groups"
|
by: Brent Burkart |
last post by:
I am trying to capture the Windows Authenticated username, but I want to be
able to capture the login name that exists in IIS, not Windows. In order to
enter my company's intranet through the internet, they have to login. I want
to be able to capture that login versus their Windows login because I need
to know who they are from any computer rather than only their computer. Any
ideas?
Thanks
|
by: Lauren Wilson |
last post by:
Does anyone know if it is possible to capture FTP responses to various
FTP commands when managing an FTP session from a VBA procedure?
For example, if we try to login to an FTP server and the login info is
incorrect, FTP replies with a message to that effect. I need to
capture those kinds of responses and advise the user of an Access app
what is happening.
Thanks for all responses.
| |
by: Stampede |
last post by:
Hi guys & girls,
I would like to write some kind of "Head-Tracking-Software", which uses a
WebCam to react to the movement of the head of the person sitting in front of
the monitor.
I searched the web and found some information on writing such a software
with the help of the DirectShow library of DirectX9. But as it was all in C++
and as I'm not very good in C++ I thought someone here might give me a link
or some other information on how...
|
by: Ed Leafe |
last post by:
I've been approached by a local business that has been advised that
they need to start capturing and archiving their instant messaging in
order to comply with Sarbanes-Oxley. The company is largely PC, but
has a significant number of Macs running OS X, too.
Googling around quickly turns up IM Grabber for the PC, which would
seem to be just what they need. But there is no equivalent to be
found for OS X. So if anyone knows of any such...
|
by: GS |
last post by:
How can one avoid capturing leading empty or blank lines?
the data I deal with look like this
"will be paid on the dates you specified.
xyz supplier
amount: $100.52 when: September 07, 2007 reference #: 0415
from: operating account
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
| |
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |