5 Replies - 374 Views - Last Post: 07 February 2019 - 05:34 PM Rate Topic: -----

#1 MH Yauta   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 3
  • Joined: 01-February 19

Exit kill process in vb10

Posted 05 February 2019 - 08:04 PM

I used kill process to stop a particular and it was successful but whenever I want to run the source code of that particular program it keeps telling me the application is being used by another process. I checked my task manager, the application is not running. How can I stop that? Thanks.
Is This A Good Question/Topic? 0
  • +

Replies To: Exit kill process in vb10

#2 MH Yauta   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 3
  • Joined: 01-February 19

Re: Exit kill process in vb10

Posted 05 February 2019 - 08:11 PM

I meant I used kill process to stop a particular program
Was This Post Helpful? 0
  • +
  • -

#3 modi123_1   User is online

  • Suitor #2
  • member icon



Reputation: 14925
  • View blog
  • Posts: 59,591
  • Joined: 12-June 08

Re: Exit kill process in vb10

Posted 05 February 2019 - 08:26 PM

I'm not following. Please explain more.
Was This Post Helpful? 0
  • +
  • -

#4 Sheepings   User is offline

  • Senior Programmer
  • member icon

Reputation: 209
  • View blog
  • Posts: 1,182
  • Joined: 05-December 13

Re: Exit kill process in vb10

Posted 06 February 2019 - 04:33 AM

Is the process you are killing, attached to a debugger? Is the process you are killing attached to any other processes or services? How are you killing the process?
Was This Post Helpful? 0
  • +
  • -

#5 maceysoftware   User is offline

  • Member Title
  • member icon

Reputation: 370
  • View blog
  • Posts: 1,586
  • Joined: 07-September 13

Re: Exit kill process in vb10

Posted 07 February 2019 - 01:41 AM

Does your application interact with other applications? have they also been cleared down?
Was This Post Helpful? 0
  • +
  • -

#6 MH Yauta   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 3
  • Joined: 01-February 19

Re: Exit kill process in vb10

Posted 07 February 2019 - 05:34 PM

Yes the process attached to a debugger. I can't run the source code.

Here is the code I used
For Each prog As Process In Process.GetProcesses
If prog.ProcessName = "SMS.exe" Then
prog.Kill()
End If
Next

It can't allow me to run the source code of sms. Thanks
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1