Click here to Skip to main content
Rate this: bad
Please Sign up or sign in to vote.
See more: VB.NET
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 at 24-Jan-13 15:42pm
Exactly. A 5.
jai_mca at 24-Jan-13 23:01pm
how to fix the memory problem?
Dave Kreskowiak at 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 at 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
0 Zoltán Zörgő 335
1 Peter Leow 155
2 BillWoodruff 120
3 CHill60 110
4 CPallini 80
0 Sergey Alexandrovich Kryukov 9,423
1 OriginalGriff 6,891
2 Peter Leow 4,692
3 Zoltán Zörgő 4,344
4 CHill60 2,932

Advertise | Privacy | Mobile
Web04 | 2.8.150129.1 | Last Updated 24 Jan 2013
Copyright © CodeProject, 1999-2015
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