Different foreground/background copying behavior via ADB

Discuss and announce Total Commander plugins, addons and other useful tools here, both their usage and their development.

Moderators: white, Hacker, petermad, Stefan2

Post Reply
demovirus
Junior Member
Junior Member
Posts: 7
Joined: 2019-03-01, 04:40 UTC

Different foreground/background copying behavior via ADB

Post by *demovirus »

Hello. I have some problem with copying via ADB. Problem is that files copied normally from disk to phone, but TC returns error window. These files opens successfully on phone, they are not corrupted. I don't know what this problem is concerned - TC or ADB driver but I definitely found an incorrect behavior of TC copying window. It works differently in foreground and background modes.
In foreground window after such error window we have updated "copied files counter" and total progress continues from the current position.
In background window after this error we see that "copied files counter" not updated and total progress resets to 0%.
Even if it is mainly the ADB driver bug, please lead these windows to one view.
You can see video here:
https://www.dropbox.com/s/n7y2phvw9t9rfjy/BackGround.mp4?dl=0
https://www.dropbox.com/s/0w3hc56tfd9h6el/ForeGround.mp4?dl=0
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Different foreground/background copying behavior via ADB

Post by *ghisler(Author) »

\\\ADB is a plugin (can be recognized by the 3 backslashes). Apparently the plugin writer hasn't correctly implemented background copying. I guess that there is a problem when TC tries to refresh the directory list while the background operation is still active. Please contact the plugin author for a fix. He will probably need to use some "critical sections" to avoid simultaneous writing to the ADB conenction by foreground and background thread.

I'm moving this thread to the plugin forum.
Author of Total Commander
https://www.ghisler.com
Post Reply