[Mono-bugs] [Bug 601766] WinForms TreeView: foreach (TreeNode node in TreeNode.Nodes) loop behaves differently from .NET

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Sun May 2 09:26:22 EDT 2010


http://bugzilla.novell.com/show_bug.cgi?id=601766

http://bugzilla.novell.com/show_bug.cgi?id=601766#c3


--- Comment #3 from Thomas Goldstein <stifu at free.fr> 2010-05-02 13:26:22 UTC ---
I was wrong: it's not a matter of which TreeNodeCollection.Add() overload is
used. The bug comes from the fact there is no TreeView attached to the
TreeNodeCollection when each Node is added.
If you directly add the Nodes to the TreeView rather than to a lone TreeNode,
then it works.

So, some of the owner / tree_view null checks in TreeNodeCollection must be
wrong, I guess, or something like that.

-- 
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the mono-bugs mailing list