I am trying to implement the sorting of a ListView object by clicking
on a column (using the example at:
http://msdn.microsoft.com/library/de...tviewsort.asp).
While debugging it I get the following exception:
An unhandled exception of type 'System.OutOfMemoryException' occurred
in System.Windows.Forms.dll
Additional information: Error creating window handle.
It is occuring at any line where I try to set the listView.Sorting
property. For example:
this.listView.Sorting = SortOrder.Ascending;
The moment I comment this line out, the exception goes away. I was
wondering if anyone had encountered this before or knew what is causing
this.
Thanks,
Steve