Wierd typeloadexception "Bad flags on delegate constructor."

Posted by Marcus on Stack Overflow See other posts from Stack Overflow or by Marcus
Published on 2010-05-19T13:33:08Z Indexed on 2010/05/19 16:40 UTC
Read the original article Hit count: 286

Filed under:
|

Hi,

Anybody seen this exception before, Google doesn't have a single post regarding the exception. The code that raises the error is a simple add.

Items.Add(item);


System.TypeLoadException: Bad flags on delegate constructor.
   at System.Windows.Forms.ListView.Sort()
   at System.Windows.Forms.ListView.InsertItems(Int32 displayIndex, ListViewItem[] items, Boolean checkHosting)
   at System.Windows.Forms.ListView.ListViewNativeItemCollection.Add(ListViewItem value)
   at System.Windows.Forms.ListView.ListViewItemCollection.Add(ListViewItem value)

© Stack Overflow or respective owner

Related posts about c#

Related posts about exception