I can't execute "session.dispose()" correctly.

Advertisement

Yuki
Guest

I can't execute "session.dispose()" correctly.

    WinSCP: version 5.9 build 6786
    OS: Windows Server 2012 R2
    Protocol: FTPS
    How to run: powershell scripting


When connecting with FTPS on the production site and runnning session.dispose command, Windows pop-up with APPSCRASH.
Looking at the dubug log, the following has been repeated.

[2017-06-29 17:56:44.244Z] [0011] 2nd generation collection count: 3
[2017-06-29 17:56:44.244Z] [0011] Total memory allocated: 24009760
[2017-06-29 17:56:44.244Z] [0011] Waiting for request event

Ultimately, I guess that the killing process is executed and it is causing APPSCRASH.

[2017-06-29 17:56:46.150Z] [0011] Waiting for request event
[2017-06-29 17:56:46.244Z] [000d] Killing process
[2017-06-29 17:56:46.244Z] [000d] ExeSessionProcess.Close leaving
[2017-06-29 17:56:46.244Z] [000d] ExeSessionProcess.Dispose entering

But I can run "session.dispose()" when connecting Test FTPS Server.In that case, it is as follows.

[2017-07-01 11:17:09.137Z] [0013] 2nd generation collection count: 3
[2017-07-01 11:17:09.137Z] [0013] Total memory allocated: 20778496
[2017-07-01 11:17:09.137Z] [0013] Waiting for request event
[2017-07-01 11:17:09.138Z] [000c] ExeSessionProcess.Close entering
[2017-07-01 11:17:09.138Z] [000c] Waiting for process to exit (2000 ms)
[2017-07-01 11:17:09.161Z] [000c] ExeSessionProcess.Close leaving
[2017-07-01 11:17:09.164Z] [000c] ExeSessionProcess.Dispose entering

How can I successfully execute process.close, dispose?
  • script_logfile.zip (20.58 KB, Private file)
Description: script and logfiles

NG is the case of connecting Production site.
OK is the case of connecting test site.

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
28,285
Location:
Prague, Czechia

Re: I can't execute "session.dispose()" correctly.

Can you reproduce the problem with 5.9.6? Post its log files.

Reply with quote

Yuki
Guest

5.9.6.7601 log files

Thank you for your reply.
I could reproduce this problem after upgrading 5.9.6.7601.
  • script_logfile_5.9.6.zip (17.58 KB, Private file)
Description: 5.9.6.7601 log files

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
28,285
Location:
Prague, Czechia

Re: 5.9.6.7601 log files

Can you send me an email, so I can send you back a debug version of WinSCP to track the problem? Please include link back to this topic in your email. Also note in this topic that you have sent the email. Thanks.

You will find my address (if you log in) in my forum profile.

Reply with quote

Advertisement

Advertisement

You can post new topics in this forum