How to make WinSCP.exe auto terminted when the program close

Advertisement

jzu
Joined:
Posts:
11
Location:
Hong Kong

How to make WinSCP.exe auto terminted when the program close

Hi all,

May I know, is there any way in code level, makes the winscp.exe auto quit after the .net program closed?
I've experience that the winscp.exe remain in memory (via task manager), it is because the .net program force closed.
I've used the "using" statement in .net program and call the dispose() method inside, but it seems the dispose method have not been called.

Jackson

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
27,226
Location:
Prague, Czechia

Re: How to make WinSCP.exe auto terminted when the program close

jzu wrote:

Just for my own interested, how do you do that? By using the Windows's API "Job Objects"?
Yes.
_________________
Martin Prikryl

Reply with quote

Advertisement

You can post new topics in this forum