#1227 COMException: Invalid FORMATETC structure

SVN_Version
closed
Crashes (166)
6
2012-09-23
2008-05-18
No

Got this as I did this (running SVN version within VS2008 IDE):
1.) Right-Click a feed item in the listview, selected "Copy link of item"
2.) Pasted it into MSN edit window (tried that, but here the exception was caused):

{"Invalid FORMATETC structure (Exception from HRESULT: 0x80040064 (DV_E_FORMATETC))"}
[System.Runtime.InteropServices.COMException]: {"Invalid FORMATETC structure (Exception from HRESULT: 0x80040064 (DV_E_FORMATETC))"}
Data: {System.Collections.ListDictionaryInternal}
HelpLink: null
InnerException: null
Message: "Invalid FORMATETC structure (Exception from HRESULT: 0x80040064 (DV_E_FORMATETC))"
Source: "mscorlib"
StackTrace: " at System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo)\r\n at System.Windows.Forms.DataObject.GetDataIntoOleStructs(FORMATETC& formatetc, STGMEDIUM& medium)\r\n at System.Windows.Forms.DataObject.System.Runtime.InteropServices.ComTypes.IDataObject.GetDataHere(FORMATETC& formatetc, STGMEDIUM& medium)\r\n at System.Windows.Forms.DataObject.System.Runtime.InteropServices.ComTypes.IDataObject.GetData(FORMATETC& formatetc, STGMEDIUM& medium)"
TargetSite: {Void ThrowExceptionForHRInternal(Int32, IntPtr)}

I guess something with the copy to clipboard code is broken. Further investigation required

Discussion

  • Torsten Rendelmann

    Logged In: YES
    user_id=714452
    Originator: YES

    Possibly related: I tested with Windows RSS Platform feedsource. We use also a different kind of FeedItem for RSS Platform feedsource, so the crash could be related

     
  • Dare Obasanjo

    Dare Obasanjo - 2008-05-26

    Logged In: YES
    user_id=24549
    Originator: NO

    There was a bug in our code so the "Copy" menu was disabled for the Windows RSS platform. So I think there is an error in this bug report since it shouldn't have been possible to get the feature to work.

     
  • Torsten Rendelmann

    Logged In: YES
    user_id=714452
    Originator: YES

    Bug is still there: it is repro here every time using the DirectAccess feedsource.
    But maybe it is OS dep., I use XP SP2 with CLR 2.0 and 3.5 installed.
    If I'm the only one that can repro, I will digg into myself later on to fix it.

     
  • Torsten Rendelmann

    Logged In: YES
    user_id=714452
    Originator: YES

    Fixed that, now using a ClipboardHelper class.

     

Log in to post a comment.