?
Solved

How to close all open resources if I need to abort the application with task manager

Posted on 2007-11-30
3
Medium Priority
?
193 Views
Last Modified: 2013-11-06
I am testing an application that is hanging and requires me to abort it using the task manager.
Is there anyway I can force the application that I am killing, to close all open resources.  It opens a copy of Word and Outlook as part of its processing.  They are left running and require me to manually stop them with Task Manager.

I am also not sure if the application  is closing the trace file.  I do have trace.autoflush = true.  So I think it is showing me the last trace message
0
Comment
Question by:castlegrpsf
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 55

Accepted Solution

by:
Jaime Olivares earned 1000 total points
ID: 20382677
you have to implement the Application.Exit event:
http://msdn2.microsoft.com/en-us/library/system.windows.application.exit.aspx
0
 
LVL 1

Expert Comment

by:Computer101
ID: 20615253
Forced accept.

Computer101
EE Admin
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

What my article will show is if you ever had to do processing to a listbox without being able to just select all the items in it. My software Visual Studio 2008 crystal report v11 My issue was I wanted to add crystal report to a form and show…
The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
The viewer will learn how to use NetBeans IDE 8.0 for Windows to connect to a MySQL database. Open Services Panel: Create a new connection using New Connection Wizard: Create a test database called eetutorial: Create a new test tabel called ee…
THe viewer will learn how to use NetBeans IDE 8.0 for Windows to perform CRUD operations on a MySql database.

718 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question