[Mono-bugs] [Bug 511849] New: Retrieving DataObjects placed onto Clipboard doesn't preserve custom formats. .NET difference
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Wed Jun 10 14:04:14 EDT 2009
http://bugzilla.novell.com/show_bug.cgi?id=511849
Summary: Retrieving DataObjects placed onto Clipboard doesn't
preserve custom formats. .NET difference
Classification: Mono
Product: Mono: Class Libraries
Version: SVN
Platform: x86
OS/Version: Ubuntu
Status: NEW
Severity: Normal
Priority: P5 - None
Component: Windows.Forms
AssignedTo: mono-bugs at lists.ximian.com
ReportedBy: tom_hindle at sil.org
QAContact: mono-bugs at lists.ximian.com
Found By: ---
Created an attachment (id=297283)
--> (http://bugzilla.novell.com/attachment.cgi?id=297283)
program placing an receiving DataObjects, containing CustomFormats, on and off
the Clipboard
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.10)
Gecko/2009042523 Ubuntu/9.04 (jaunty) Firefox/3.0.10
For example (given a Serializable class - MyStream):
MyStream s = new MyStream()
DataObject orig = new DataObject();
orig.SetData("IStream", s);
Clipboard.SetDataObject(orig);
IDataObject newDataObj = Clipboard.GetDataObject();
Assert((newDataObj.GetData("IStream") as MyStream) != null); // fails
This works on .NET
Reproducible: Always
Steps to Reproduce:
1.Compile and run attached TestCase
2.
3.
Actual Results:
53
hello world
Unhandled Exception: System.NullReferenceException: Object reference not set to
an instance of an object
at ConsoleApplication5.Program.Main (System.String[] args) [0x0006c] in
/home/hindlet/DataObjectTest/DataObjectTest/ClipboardTest.cs:93
Expected Results:
53
hello world
53
hello world
--
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
More information about the mono-bugs
mailing list