[bug?] TC cleaning clipboard when closing

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

Moderators: white, Hacker, petermad, Stefan2

User avatar
DrShark
Power Member
Power Member
Posts: 1872
Joined: 2006-11-03, 22:26 UTC
Location: Kyiv, 68/262
Contact:

[bug?] TC cleaning clipboard when closing

Post by *DrShark »

From forum.wincmd.ru
Copy some file(s) via Ctrl+C or context menu, then close TC.
Clipboard will be clean. Bug?
This applies only for files copying, other tc's copying functions works fine in this case.
User avatar
Clo
Moderator
Moderator
Posts: 5731
Joined: 2003-12-02, 19:01 UTC
Location: Bordeaux, France
Contact:

Nothing to paste

Post by *Clo »

2DrShark

:) Hello !

• I can confirm, I tested with a text-file and also with a small BMP : There is nothing to paste in another APP. :(

:mrgreen: KR
Claude
Clo
#31505 Traducteur Français de TC French translator Aide en Français Tutoriels Français English Tutorials
User avatar
sqa_wizard
Power Member
Power Member
Posts: 3864
Joined: 2003-02-06, 11:41 UTC
Location: Germany

Post by *sqa_wizard »

Clipboard will be clean. Bug?
IMO expected behavior ... don't leave any mess if you leave ... just housekeeping in a strict manner.
#5767 Personal license
User avatar
Clo
Moderator
Moderator
Posts: 5731
Joined: 2003-12-02, 19:01 UTC
Location: Bordeaux, France
Contact:

Strange behaviour

Post by *Clo »

2sqa_wizard

:) Hello !

• Sorry, but in the case, I tend to disagree. I think that it isn't a good and handy behaviour.
- So, we can only paste in TC that we copied in TC :(

- Fortunately, other programmes behave differently…
- When I copy an image in XnView, I expect to be able to paste it in M$Paint, that I do and it works.
- Same for text-files…
- It could be great to get an option or a command in order to choose that occurs when closing TC,
about the content of the Clipboard. :roll:

:mrgreen: VG
Claude
Clo
#31505 Traducteur Français de TC French translator Aide en Français Tutoriels Français English Tutorials
User avatar
petermad
Power Member
Power Member
Posts: 14810
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

2Clo
So, we can only paste in TC that we copied in TC
That's not true - as long as you keep TC open you can copy from TC and paste it in for example Explorer.
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
roentgen
Power Member
Power Member
Posts: 757
Joined: 2005-12-03, 19:58 UTC

Post by *roentgen »

2sqa_wizard
2petermad
IMO expected behavior
That's not true - as long as you keep TC open you can copy from TC and paste it in for example Explorer.
I like TC too but not that much to consider bugs as features :wink:
TC for Linux please!
User avatar
Clo
Moderator
Moderator
Posts: 5731
Joined: 2003-12-02, 19:01 UTC
Location: Bordeaux, France
Contact:

Not needed = Closed !

Post by *Clo »

2petermad

:) Hi Peter !

• But I never keep TC open endlessly when I no longer need it !
- It's the habit I'm in for years… And I repeat : Other programmes do NOT clear the Clipboard when quitting !
- It's quite abnormal to be bound to keep TC open only for that.
-----------------------

—> roentgen

:) Hi !

• I agree, finally we can call that a bug, at least a weird “forgotten” lacuna… or - like I said already - a “Bugfeature” :P

:mrgreen: KR
Claude
Clo
#31505 Traducteur Français de TC French translator Aide en Français Tutoriels Français English Tutorials
User avatar
Sam_Zen
Power Member
Power Member
Posts: 700
Joined: 2005-02-08, 22:59 UTC
Location: NL
Contact:

Post by *Sam_Zen »

To complete the aspects, I checked by selecting some files, and placing the list in the clipboard with the command
'cm_CopyNamesToClip'. Then I closed TC, but I was still able to paste the strings in an empty ascii- editor.
So there seems to be difference in behaviour too.

Bug or not, I would call it a lack of elegancy. At least, as in some apps, the user should be warned, before closing, that the
clipboard is still filled with recent data. Wipe yes or no.
Some other apps have a checkbox in the settings for automatically cleaning the clipboard at closing.
Can be quite memory-efficient after working with huge media-files.
I prefer to work in a clean environment too, as sqa_wizard's 'don't leave any mess if you leave' states.
So a custom choice in this would be nice.

Btw : Normally at my daily PC-session TC is First on - Last out, so I now closed and opened TC just for the experiment.
0.618033988
User avatar
Clo
Moderator
Moderator
Posts: 5731
Joined: 2003-12-02, 19:01 UTC
Location: Bordeaux, France
Contact:

Option, please !

Post by *Clo »

2Sam_Zen

:) Hello Sam !

• Actually, I thought also to point out the different behaviour with the Copy_to_Clip… commands.
It's good that you did it here.
- Two opposite behaviours and no option is inconsistent…
- So, I wish an option to define what happens to the content of the Clipboard (coming from Copy - Ctrl+C) when TC is closed.

:mrgreen: FR
Claude
Clo
#31505 Traducteur Français de TC French translator Aide en Français Tutoriels Français English Tutorials
User avatar
DrShark
Power Member
Power Member
Posts: 1872
Joined: 2006-11-03, 22:26 UTC
Location: Kyiv, 68/262
Contact:

Post by *DrShark »

2Clo
Can you explain why this moved to "Behaviour which will not be changed"?
User avatar
petermad
Power Member
Power Member
Posts: 14810
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

Can you explain why this moved to "Behaviour which will not be changed"?
Maybe because of this answer from Ghisler in the private beta test forum.
ghisler(Author) wrote:Unfortunately I have no influence on that. What I do is the following:
1. I create the IShellFolder OLE object
2. I create the IContextMenu OLE object for all selected files
3. I request the context menu items
4. I send the "copy" verb to the context menu

So it's the same as if the user right clicks on the file and then copies it to the clipboard. It seems that Windows doesn't really store the OLE objects of the copied files in the clipboard. Instead, they are just references which are then filled with data on "paste" by the creator. So when this creator is closed, there is no more data...
I tested copying with the right-click menu or Ctrl+C from some other programs - here it was the same: once the programs are closed the clipboard is cleared from the references to the chosen files.

This doesn't happen in Explorer, but that must be because Explorer is always running even when the Explorer window is closed.
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
Clo
Moderator
Moderator
Posts: 5731
Joined: 2003-12-02, 19:01 UTC
Location: Bordeaux, France
Contact:

Not only

Post by *Clo »

2petermad

:) Hello Peter !
This doesn't happen in Explorer…
• Not only, the contents are kept also in :
- Altap Salamander
- Directory Opus
when closed.
---------------
2DrShark

:) Hi !
¤ Note : I didn't move the thread, I assume that the Author did it…

:mrgreen: FR
Claude
Clo
#31505 Traducteur Français de TC French translator Aide en Français Tutoriels Français English Tutorials
User avatar
petermad
Power Member
Power Member
Posts: 14810
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

Not only, the contents are kept also in :
- Altap Salamander
Just downloaded and tried it - you are right - it must use another system call than TC.
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
Clo
Moderator
Moderator
Posts: 5731
Joined: 2003-12-02, 19:01 UTC
Location: Bordeaux, France
Contact:

Cerdits to Jeff

Post by *Clo »

2petermad


:) All credits to icfu (Hi Jeff !) who pointed out this issue ELSEWHERE… Still unanswered, though :?

:mrgreen: FR
Claude
Clo
#31505 Traducteur Français de TC French translator Aide en Français Tutoriels Français English Tutorials
User avatar
SanskritFritz
Power Member
Power Member
Posts: 3693
Joined: 2003-07-24, 09:25 UTC
Location: Budapest, Hungary

Post by *SanskritFritz »

I cannot reproduce the problem here, I can paste the copied file after closing TC.
Otherwise, CLCL users should have no probs here, it faithfully remembers the contents of the clipboard (even the very special file list).
I switched to Linux, bye and thanks for all the fish!
Post Reply