Solved

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

Posted on 2007-11-30
3
187 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

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

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

For most people, the WrapPanel seems like a magic when they switch from WinForms to WPF. Most of us will think that the code that is used to write a control like that would be difficult. However, most of the work is done by the WPF engine, and the W…
A theme is a collection of property settings that allow you to define the look of pages and controls, and then apply the look consistently across pages in an application. Themes can be made up of a set of elements: skins, style sheets, images, and o…
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.

821 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