Click here to Skip to main content
13,256,590 members (56,115 online)
Rate this:
Please Sign up or sign in to vote.
See more:
Dear Friends,

I have developed a window application.when ever i used to close the exe of the application,memory error throwned.after that i make it close by using task i want to kill the exe from the task manager whenever i closed.

how to match the running process using its name?
can anyone help me ..i will be thanksful to you for this help..

thanks in advance
Posted 24-Jan-13 2:26am
Rate this: bad
Please Sign up or sign in to vote.

Solution 2

Instead of screwing around trying to kill a process, I'd put your effort into fixing the memory problem!
Sergey Alexandrovich Kryukov 24-Jan-13 15:42pm
Exactly. A 5.
jai_mca 24-Jan-13 23:01pm
how to fix the memory problem?
Dave Kreskowiak 25-Jan-13 0:00am
Considering we know NOTHING about the app nor what it's doing nor what it uses nor what exactly happens when the crash occurs, there's nothing anyone can tell you to help.
jai_mca 28-Jan-13 23:44pm
ok dave...thanks for your reply.i have solved..
Rate this: bad
Please Sign up or sign in to vote.

Solution 1

You can use the Process Diagnostic class[^].

Here are some examples -[^][^]

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

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web02 | 2.8.171114.1 | Last Updated 24 Jan 2013
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100