Ticket UUID: | 732662 | |||
Title: | Under Win*, data copied to clipboard is lost upon app exit | |||
Type: | Bug | Version: | None | |
Submitter: | jgodfrey | Created on: | 2003-05-05 12:47:45 | |
Subsystem: | 52. [clipboard] | Assigned To: | hobbs | |
Priority: | 5 Medium | Severity: | ||
Status: | Closed | Last Modified: | 2004-05-04 05:20:38 | |
Resolution: | Duplicate | Closed By: | hobbs | |
Closed on: | 2004-05-03 22:20:38 | |||
Description: |
Using the Windows operating system, any data copied to the clipboard is lost when the Tk based app is exited. With 2 separate Tk apps, data can be copied to the clipboard in App_A and pasted into App_B, as long as both apps are running. But, if data is copied to the clipboard in App_A and then App_A is closed, the clipboard data is lost and can no longer be pasted. | |||
User Comments: |
hobbs added on 2004-05-04 05:20:38:
Logged In: YES user_id=72656 Fixed, see 939389 hobbs added on 2003-06-17 02:01:23: Logged In: YES user_id=72656 There is no issue. When I first tried it, I copied once, and then the text is maintained in the clipboard, as jgodfrey noted. That threw me off. martinlemburg added on 2003-06-16 18:38:48: Logged In: YES user_id=802134 Hello Jeff Hobbs, what kind of example/case would be more "elaborate"? Jeff Godfreys test case ... pack [text .t] -expand 1 -fill both .t insert 1.0 "This is some text to copy to the clipboard" clipboard clear clipboard append -- [.t get 1.0 end] ... is the most simple one. Using the ActiveTcl v8.4.3 distribution on MS Windows 2000 SP3 and Jeff Godfreys test case, I couldn't paste the copied text into another application, after (regulary) exiting the wish84.exe - e.g. VIM tells me that the "register" is empty. If I pasted the copied text into another application before exiting wish84.exe, the text remained in the clipboard and could be pasted to other applications too. Everything is like Jeff Godfrey described initially. But ... this behaviour is wellknown for me since tcl/tk v8.0.x and was documented to/for the core team since this early v8.x times. What did you, Jeff Hobbs, do to be able to paste copied text in another application, after exiting wish84 and not pasting it before exiting wish84? Best regards, Martin Lemburg jgodfrey added on 2003-05-11 08:27:36: Logged In: YES user_id=113550 At least under Windows 98 (and ActiveTcl 8.4.2), the following code illustrates the problem: pack [text .t] -expand 1 -fill both .t insert 1.0 "This is some text to copy to the clipboard" clipboard clear clipboard append -- [.t get 1.0 end] Note that after running the code, the text string can be pasted back into the Text widget using Ctrl-V (proving that it *has* been copied to the clipboard). Now, exit the Tk application, and try to paste the text into another application - the clipboard is empty. Interestingly, if the text is pasted into another app at last once while the Tk app is running, it seems to still be available in the clipboard after the Tk app has exited... hobbs added on 2003-05-11 07:33:33: Logged In: YES user_id=72656 I have found this to not be the case in 8.4, at least when using the text widget. It should store the data on app exit (regular app exit, not abnormal exit). Can you provide a more elaborate case? |