Solved

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

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

Get free NFR key for Veeam Availability Suite 9.5

Veeam is happy to provide a free NFR license (1 year, 2 sockets) to all certified IT Pros. The license allows for the non-production use of Veeam Availability Suite v9.5 in your home lab, without any feature limitations. It works for both VMware and Hyper-V environments

Question has a verified solution.

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

Here is a helpful source code for C++ Builder programmers that allows you to manage and manipulate HTML content from C++ code, while also handling HTML events like onclick, onmouseover, ... Some objects defined and used in this source include: …
Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
The viewer will learn how to use and create keystrokes in Netbeans IDE 8.0 for Windows.
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…

617 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