mail-archives/mono-list/2005-February/025998.html

129 строки
4.6 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<TITLE> [Mono-list] ListView.cs bugs
</TITLE>
<LINK REL="Index" HREF="index.html" >
<LINK REL="made" HREF="mailto:chris.bacon%40docobo.co.uk">
<META NAME="robots" CONTENT="index,nofollow">
<LINK REL="Previous" HREF="025981.html">
<LINK REL="Next" HREF="026013.html">
</HEAD>
<BODY BGCOLOR="#ffffff">
<H1>[Mono-list] ListView.cs bugs
</H1>
<B>Chris Bacon
</B>
<A HREF="mailto:chris.bacon%40docobo.co.uk"
TITLE="[Mono-list] ListView.cs bugs">chris.bacon@docobo.co.uk
</A><BR>
<I>Thu, 24 Feb 2005 12:14:56 -0000</I>
<P><UL>
<LI> Previous message: <A HREF="025981.html">[Mono-list] ListView.cs bugs
</A></li>
<LI> Next message: <A HREF="026013.html">[Mono-list] ListView.cs bugs
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#25998">[ date ]</a>
<a href="thread.html#25998">[ thread ]</a>
<a href="subject.html#25998">[ subject ]</a>
<a href="author.html#25998">[ author ]</a>
</LI>
</UL>
<HR>
<!--beginarticle-->
<PRE>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 <A HREF="http://www.go-mono.com/delegate.html">http://www.go-mono.com/delegate.html</A> for an explanation and ways to
fix this.
before even a window has been created
Any ideas why?
Thanks
Chris
----- Original Message -----
From: &quot;Peter Dennis Bartok&quot; &lt;<A HREF="mailto:peter@novonyx.com">peter@novonyx.com</A>&gt;
To: &quot;Chris Bacon&quot; &lt;<A HREF="mailto:chris.bacon@docobo.co.uk">chris.bacon@docobo.co.uk</A>&gt;; &lt;<A HREF="mailto:mono-list@lists.ximian.com">mono-list@lists.ximian.com</A>&gt;
Sent: Thursday, February 24, 2005 5:47 AM
Subject: Re: [Mono-list] ListView.cs bugs
&gt;<i> Chris,
</I>&gt;<i>
</I>&gt;<i> Thanks for the fix. I've commited it to svn. I also fixed assigning the
</I>&gt;<i> owner for Insert(), which had the same issue.
</I>&gt;<i>
</I>&gt;<i> The redraw problem with tab page switches is a bug and I've logged it
</I>here:
&gt;<i> <A HREF="http://bugzilla.ximian.com/show_bug.cgi?id=72950">http://bugzilla.ximian.com/show_bug.cgi?id=72950</A>
</I>&gt;<i>
</I>&gt;<i> Cheers,
</I>&gt;<i> Peter
</I>&gt;<i>
</I>&gt;<i> -----Original Message-----
</I>&gt;<i> From: &quot;Chris Bacon&quot; &lt;<A HREF="mailto:chris.bacon@docobo.co.uk">chris.bacon@docobo.co.uk</A>&gt;
</I>&gt;<i> To: &lt;<A HREF="mailto:mono-list@lists.ximian.com">mono-list@lists.ximian.com</A>&gt;
</I>&gt;<i> Date: 23 February, 2005 18:46
</I>&gt;<i> Subject: [Mono-list] ListView.cs bugs
</I>&gt;<i>
</I>&gt;<i>
</I>&gt;<i> &gt;Hi,
</I>&gt;<i> &gt;
</I>&gt;<i> &gt;I've discovered a possible bug in ListView.cs.
</I>&gt;<i> &gt;
</I>&gt;<i> &gt;When a ColumnHeader is added to the ColumnHeaderList its 'owner' member
</I>is
&gt;<i> &gt;not set.
</I>&gt;<i> &gt;The attached patch fixes this, although I'm not sure if it fixes it in
</I>the
&gt;<i> &gt;correct way.
</I>&gt;<i> &gt;
</I>&gt;<i> &gt;The attached TestCode.cs shows this and it also shows a bug where the
</I>&gt;<i> &gt;neither the listview control nor the label control are redrawn when
</I>&gt;<i> &gt;switching between the two tabPages.
</I>&gt;<i> &gt;I'm not sure if this is supposed to work; if not, then sorry about
</I>bringing
&gt;<i> &gt;it up!
</I>&gt;<i> &gt;
</I>&gt;<i> &gt;There is also a curious anomaly in the MS documentation for
</I>&gt;<i> &gt;&quot;ListView.ColumnHeaderCollection.AddRange&quot; which states that &quot;This method
</I>&gt;<i> &gt;removes all existing column headers from the collection before inserting
</I>&gt;<i> &gt;new
</I>&gt;<i> &gt;items&quot;. However, this does not seem to be true (in MS or Mono).
</I>&gt;<i> &gt;
</I>&gt;<i> &gt;Chris
</I>&gt;<i> &gt;
</I>&gt;<i>
</I>&gt;<i>
</I>
</PRE>
<!--endarticle-->
<HR>
<P><UL>
<!--threads-->
<LI> Previous message: <A HREF="025981.html">[Mono-list] ListView.cs bugs
</A></li>
<LI> Next message: <A HREF="026013.html">[Mono-list] ListView.cs bugs
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#25998">[ date ]</a>
<a href="thread.html#25998">[ thread ]</a>
<a href="subject.html#25998">[ subject ]</a>
<a href="author.html#25998">[ author ]</a>
</LI>
</UL>
</body></html>