473,395 Members | 1,987 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

WinForms app exit suddenly

Hi, there.
I'm developing a WinForms application, and a user reported that it
will exit suddenly seconds after startup, every time. There isn't any
prompt at all, just like he killed the process from task manager. I
think I catched most of possible exceptions, and in case it's because
of an uncatched exception, there should be something like "Do you want
to send report to Microsoft" dialog.
In my app, I used Thread, FileSystemWatcher, WebClient, and gloabl
keyboard hook depends on user's setting. Is there any chance that
these components will cause this behaviour?
My app is developed on .Net 2.0, and my user is using Windows XP sp2
with .Net 3.0 installed.

Thanks!

Nov 14 '07 #1
2 1799
Hello deerchao,

how do you handle unhandled exceptions?
do u use AppDomain.UnhandledException event?

---
WBR,
Michael Nemtsev [.NET/C# MVP] :: blog: http://spaces.live.com/laflour

"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo
dHi, there.
dI'm developing a WinForms application, and a user reported that it
dwill exit suddenly seconds after startup, every time. There isn't any
dprompt at all, just like he killed the process from task manager. I
dthink I catched most of possible exceptions, and in case it's because
dof an uncatched exception, there should be something like "Do you
dwant
dto send report to Microsoft" dialog.
dIn my app, I used Thread, FileSystemWatcher, WebClient, and gloabl
dkeyboard hook depends on user's setting. Is there any chance that
dthese components will cause this behaviour?
dMy app is developed on .Net 2.0, and my user is using Windows XP sp2
dwith .Net 3.0 installed.
dThanks!
d>
Nov 14 '07 #2
On Nov 14, 8:16 pm, Michael Nemtsev [MVP] <nemt...@msn.comwrote:
Hello deerchao,

how do you handle unhandled exceptions?
do u use AppDomain.UnhandledException event?

---
WBR,
Michael Nemtsev [.NET/C# MVP] :: blog:http://spaces.live.com/laflour

"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo

dHi, there.
dI'm developing a WinForms application, and a user reported that it
dwill exit suddenly seconds after startup, every time. There isn't any
dprompt at all, just like he killed the process from task manager. I
dthink I catched most of possible exceptions, and in case it's because
dof an uncatched exception, there should be something like "Do you
dwant
dto send report to Microsoft" dialog.
dIn my app, I used Thread, FileSystemWatcher, WebClient, and gloabl
dkeyboard hook depends on user's setting. Is there any chance that
dthese components will cause this behaviour?
dMy app is developed on .Net 2.0, and my user is using Windows XP sp2
dwith .Net 3.0 installed.
dThanks!
d>
Thanks, I'll try System.appdomain.UnhandledException. Currently I only
hooked System.Windows.Forms.Application.
ThreadException.

Nov 14 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

20
by: lovecreatesbeauty | last post by:
Hello experts, Is the following code snippet legal? If it is, how can exit() do the keyword return a favor and give a return value to the main function? Can a function call (or only this...
5
by: Bob Altman | last post by:
Hi all, I have a WinForms app that has no main window (just a module with a Sub Main). My Main routine calls a subroutine that wants to politely abort the application rather than return to its...
11
by: Steve Smith | last post by:
I have written a winforms application that launches approximately 150 threads with Thread.ThreadStart() Each thread uses CDO 1.21 to logon to a different Exchange mailbox and send/receive a...
39
by: mathieu | last post by:
Hi there, I am trying to reuse a piece of code that was designed as an application. The code is covered with 'exit' calls. I would like to reuse it as a library. For that I renamed the 'main'...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
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,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
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,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.