Click here to Skip to main content
15,890,717 members
Please Sign up or sign in to vote.
4.08/5 (3 votes)
See more:
Hi,

I have an issue, the issue is like
I have closed the exe which is a WPF application. But still I can see in the Task Manager.
I have used the code
C#
Process.GetCurrentProcess().Kill();

still it is running in the task manager.

Important Note: I have timer jobs initialised and running in the application. Will that be an issue in this case.

The probelm is the issue persists in my customer's environment only but not in mine. So couldn't replicate and check.

Please help me in this.

Thanks & Regards,
Mathi.
Posted

Please see this answer on SO[^]

Is it possible to try
Application.Exit()
instead?

[Please encourage participation by up-voting solutions or answers that work for you]
 
Share this answer
 
Comments
Mathi2code 4-Feb-14 22:59pm    
let me try this
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900