Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / WinForm General / January 2007

Tip: Looking for answers? Try searching our database.

Reason for Application.ThreadExit

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
pavel.orehov@gmail.com - 15 Jan 2007 13:31 GMT
Hi,

We have the strange problem that sometime in our application
Application.ThreadExit is raised and out application shutting down.

We do not see any previous exceptions before this event fires.

Moreover the Application.ThreadException event is not fired at all, so
we have not unhandled exceptions that occurs.

We are working with SQL-2005 and with some unmanaged code too.

What can be the reason for such behaviour ? And how can we catch such
error ?

Thanks,
Pavel
Richard Coltrane - 16 Jan 2007 00:40 GMT
Hi,

How do you know the exception is occuring if you cannot catch it? Are you
receiving a dialog? What version of the framework are you using? Are you
aware that unhandled exceptions wont be caught in debug mode? Why do you
include sql 2005 plus unmanaged in your problem? Does the problem occur when
accessing code paths involving these services or is it just totally random?

Richard

> Hi,
>
[quoted text clipped - 13 lines]
> Thanks,
> Pavel
pavel.orehov@gmail.com - 21 Jan 2007 18:57 GMT
> How do you know the exception is occuring if you cannot catch it?

I am registering to Application.ThreadExit &
Application.ThreadException. The ThreadExit fires without
ThreadException. I am not sure this was exception, but why ThreadExit
fires ?

> Are you receiving a dialog?

No

> What version of the framework are you using?

3.0

> Are you aware that unhandled exceptions wont be caught in debug mode?

I know, but the problem that there are no exceptions, just thread exit.

> Why do you include sql 2005 plus unmanaged in your problem? Does the problem occur when
  accessing code paths involving these services or is it just totally
random?

Random.

My main question is what can cause to main thread of Windows Forms
raise ThreadExit without rasing ThreadException before ?
Andy - 22 Jan 2007 21:10 GMT
ThreadExit just means the thread is shutting down, usually due to the
application ending.   The ExitThread method would cause this to be
raised, as well as the last form closing.

> My main question is what can cause to main thread of Windows Forms
> raise ThreadExit without rasing ThreadException before ?

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.