[Mono-bugs] [Bug 601766] New: 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 05:07:06 EDT 2010


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

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


           Summary: WinForms TreeView: foreach (TreeNode node in
                    TreeNode.Nodes) loop behaves differently from .NET
    Classification: Mono
           Product: Mono: Class Libraries
           Version: 2.6.x
          Platform: x86
        OS/Version: openSUSE 11.2
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: Windows.Forms
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: lextudio at gmail.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---


User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US) AppleWebKit/533.2
(KHTML, like Gecko) Chrome/5.0.342.9 Safari/533.2

I use foreach loop to iterate a TreeNode.Nodes, and insert them into another
TreeNode.Nodes.

On Windows/.NET all TreeNodes are iterated and inserted, but on Mono/openSUSE
some nodes become missing.

A sample project is attached.

Reproducible: Always

Steps to Reproduce:
1. Compile and run the sample on Mono.
Actual Results:  
We can only see "one" and "three" are displayed.

Expected Results:  
We should see "one", "two", and "three" all are displayed.

-- 
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