[Mono-bugs] [Bug 509274] New: Clipboard.SetDataObject doesn't handle objects that implement COM IDataObject correctly. .NET difference
    bugzilla_noreply at novell.com 
    bugzilla_noreply at novell.com
       
    Tue Jun  2 16:51:52 EDT 2009
    
    
  
http://bugzilla.novell.com/show_bug.cgi?id=509274
User tom_hindle at sil.org added comment
http://bugzilla.novell.com/show_bug.cgi?id=509274#c509199
           Summary: Clipboard.SetDataObject doesn't handle objects that
                    implement COM IDataObject correctly. .NET difference
    Classification: Mono
           Product: Mono: Class Libraries
           Version: SVN
          Platform: Other
        OS/Version: Other
            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=295823)
 --> (http://bugzilla.novell.com/attachment.cgi?id=295823)
Test case showing use of System.Runtime.InteropServices.ComTypes.IDataObject
with SetDataObject
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
There are two different versions of IDataObject:
System.Windows.Forms.IDataObject and
 System.Runtime.InteropServices.ComTypes.IDataObject
SetDataObject should handle both.
System.Windows.Forms IDataObject issues reported in bug #509199.
Attached test case showing SetDataObject use with an object that implements
System.Runtime.InteropServices.ComTypes.IDataObject.
Reproducible: Always
Steps to Reproduce:
1.Compile and Run test case.
2.
3.
Actual Results:  
SetDataObject
GetDataObject
Expected Results:  
SetDataObject
EnumFormatEtc(DATADIR) direction = DATADIR_GET
EnumFormatEtc(DATADIR)  end
IEnumFORMATETC Reset
IEnumFORMATETC Next celt = 1
IEnumFORMATETC Next celt = 1
IEnumFORMATETC Next celt = 1
IEnumFORMATETC Next celt = 1
IEnumFORMATETC Next celt = 1
IEnumFORMATETC Reset
IEnumFORMATETC Next celt = 1
IEnumFORMATETC Next celt = 1
IEnumFORMATETC Next celt = 1
IEnumFORMATETC Next celt = 1
IEnumFORMATETC Next celt = 1
GetData format = 1 DVASPECT_CONTENT TYMED_HGLOBAL
GetData end
GetData format = 7 DVASPECT_CONTENT TYMED_HGLOBAL
GetData end
GetData format = 13 DVASPECT_CONTENT TYMED_HGLOBAL
GetData end
GetDataObject
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