Bug 4959 - Clipboard.SetDataObject ignores copy parameter
Summary: Clipboard.SetDataObject ignores copy parameter
Status: RESOLVED FIXED
Alias: None
Product: Class Libraries
Classification: Mono
Component: Windows.Forms ()
Version: 2.10.x
Hardware: PC Linux
: --- normal
Target Milestone: Untriaged
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2012-05-09 02:15 UTC by eb1
Modified: 2012-05-24 16:20 UTC (History)
2 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:


Attachments
Unit test that demonstrates the problem (3.38 KB, patch)
2012-05-09 05:05 UTC, eb1
Details
Suggested fix for Linux (8.48 KB, patch)
2012-05-09 05:05 UTC, eb1
Details


Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on GitHub or Developer Community with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED FIXED

Description eb1 2012-05-09 02:15:28 UTC
Clipboard.SetDataObject() has a copy parameter. Passing true should put the data on the clipboard in a way that it is still there after the application exits.

The Mono implementation ignores this parameter. On X11 this causes the clipboard to be cleared when the application exits.
Comment 1 eb1 2012-05-09 05:05:06 UTC
Created attachment 1831 [details]
Unit test that demonstrates the problem
Comment 2 eb1 2012-05-09 05:05:45 UTC
Created attachment 1832 [details]
Suggested fix for Linux
Comment 3 eb1 2012-05-21 05:27:57 UTC
Pull request #297
Comment 4 Miguel de Icaza [MSFT] 2012-05-24 16:20:07 UTC
Thanks!