Solved

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

Posted on 2007-11-30
3
185 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
3 Comments
 
LVL 55

Accepted Solution

by:
Jaime Olivares earned 250 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Update (December 2011): Since this article was published, the things have changed for good for Android native developers. The Sequoyah Project (http://www.eclipse.org/sequoyah/) automates most of the tasks discussed in this article. You can even fin…
With most software applications trying to cater to multiple user needs nowadays, the focus is to make them as configurable as possible. For e.g., when creating Silverlight applications which will connect to WCF services, the service end point usuall…
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
The viewer will learn how to use and create new code templates in NetBeans IDE 8.0 for Windows.

861 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

Need Help in Real-Time?

Connect with top rated Experts

25 Experts available now in Live!

Get 1:1 Help Now