[Mono-list] ListView.cs bugs

Scott Mohekey scott.mohekey@telogis.com
Fri, 25 Feb 2005 11:16:23 +1300


This thread has some more info about this particular bug. It was 
introduced as a result of a fix to another bug.

http://lists.ximian.com/archives/public/mono-devel-list/2005-February/010461.html

Scott.

Chris Bacon wrote:

>Hi,
>
>I've just updated to SVN revision 41147 and now when I try to run this
>example (which creates a form with a tabcontrol with 2 pages, one with a
>label, the other with a listview) I get the following error:
>
>** ERROR **: Unmanaged code called delegate of type
>System.Drawing.GDIPlus/GdiPlusStreamHelper.StreamSizeImpl which was
>already garbage collected.
>See http://www.go-mono.com/delegate.html for an explanation and ways to
>fix this.
>
>before even a window has been created
>
>Any ideas why?
>
>Thanks
>Chris
>
>----- Original Message ----- 
>From: "Peter Dennis Bartok" <peter@novonyx.com>
>To: "Chris Bacon" <chris.bacon@docobo.co.uk>; <mono-list@lists.ximian.com>
>Sent: Thursday, February 24, 2005 5:47 AM
>Subject: Re: [Mono-list] ListView.cs bugs
>
>
>  
>
>>Chris,
>>
>>Thanks for the fix. I've commited it to svn. I also fixed assigning the
>>owner for Insert(), which had the same issue.
>>
>>The redraw problem with tab page switches is a bug and I've logged it
>>    
>>
>here:
>  
>
>>http://bugzilla.ximian.com/show_bug.cgi?id=72950
>>
>>Cheers,
>> Peter
>>
>>-----Original Message-----
>>From: "Chris Bacon" <chris.bacon@docobo.co.uk>
>>To: <mono-list@lists.ximian.com>
>>Date: 23 February, 2005 18:46
>>Subject: [Mono-list] ListView.cs bugs
>>
>>
>>    
>>
>>>Hi,
>>>
>>>I've discovered a possible bug in ListView.cs.
>>>
>>>When a ColumnHeader is added to the ColumnHeaderList its 'owner' member
>>>      
>>>
>is
>  
>
>>>not set.
>>>The attached patch fixes this, although I'm not sure if it fixes it in
>>>      
>>>
>the
>  
>
>>>correct way.
>>>
>>>The attached TestCode.cs shows this and it also shows a bug where the
>>>neither the listview control nor the label control are redrawn when
>>>switching between the two tabPages.
>>>I'm not sure if this is supposed to work; if not, then sorry about
>>>      
>>>
>bringing
>  
>
>>>it up!
>>>
>>>There is also a curious anomaly in the MS documentation for
>>>"ListView.ColumnHeaderCollection.AddRange" which states that "This method
>>>removes all existing column headers from the collection before inserting
>>>new
>>>items". However, this does not seem to be true (in MS or Mono).
>>>
>>>Chris
>>>
>>>      
>>>
>>    
>>
>
>
>_______________________________________________
>Mono-list maillist  -  Mono-list@lists.ximian.com
>http://lists.ximian.com/mailman/listinfo/mono-list
>
>  
>