the_b1ackfox
asked on
A process to kill...
I have written an application in c# 2003 which uses multiple winforms forms stored in memory. The problem is that during the course of a day, there seem to be some of the forms left in memory. I would like my application to check if an instance of the application is already loaded, and if so, then kill the existing process.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I am evaluating both solutions and will award points accordingly
ASKER
BungHoc, I couldn't get your solution to work. Not sure where it is off.
System.Diagnostics.Process
(System.Diagnostics.Proces
if (Fpc.Id != System.Diagnostics.Process
{
Fpc.Kill();
}