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

Author Message
jzu
[View user's profile]

Joined: 2013-08-18
Posts: 11
Location: Hong Kong
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
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24991
Location: Prague, Czechia
Thanks for your report.

This bug has been added to the tracker:
https://winscp.net/tracker/show_bug.cgi?id=1045
jzu
[View user's profile]

Joined: 2013-08-18
Posts: 11
Location: Hong Kong
prikryl wrote:
Thanks for your report.

This bug has been added to the tracker:
https://winscp.net/tracker/show_bug.cgi?id=1045


Hi prikryl,

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

Jackson
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24991
Location: Prague, Czechia
jzu wrote:
Just for my own interested, how do you do that? By using the Windows's API "Job Objects"?

Yes.
_________________
Martin Prikryl
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License