[9.0] TC doesn't stop background WFX copy on close

The behaviour described in the bug report is either by design, or would be far too complex/time-consuming to be changed

Moderators: Hacker, petermad, Stefan2, white

Post Reply
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

[9.0] TC doesn't stop background WFX copy on close

Post by *MVV »

Why doesn't TC stop background WFX transfer operations on close? I tested it with my Virtual Panel, I've started copying some files from it to normal folder with background option enabled and then closed TC, and it simply called FreeLibrary for the plugin w/o stopping transfer first.
Of course I can add a code to prevent such unexpected terminations but I believe it should be done by TC and not by every plugin.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50550
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

I think it's done to not further delay then closing of TC.
Author of Total Commander
https://www.ghisler.com
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

But it causes exceptions in plugins... Such unsafe things may not be left as is on TC closing, transfers should be terminated anyway.
User avatar
MarcinW
Power Member
Power Member
Posts: 852
Joined: 2012-01-23, 15:58 UTC
Location: Poland

Post by *MarcinW »

Well, unloading a library for a still running thread must cause some catastrophic error... What's worse, we can't be sure about a data integrity for the background operation.

Maybe the transfer could be moved to foreground when trying to close TC?
siealex
Senior Member
Senior Member
Posts: 304
Joined: 2009-03-22, 16:36 UTC

Post by *siealex »

>>Maybe the transfer could be moved to foreground when trying to close TC?
Or even explicitly disable closing with background transfer.
We are not so S.M.A.R.T. as we imagine...
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

TC could show abort confirmation for such background transfers. However TC doesn't show confirmations for aborting WFX transfers at all.
Post Reply