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

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


           Summary: Microsoft.Build.BuildEngine.Engine.UnloadAllProjects()
                    throws an exception when invoked with 1 or more
                    projects
    Classification: Mono
           Product: Mono: Class Libraries
           Version: 2.6.x
          Platform: i386
        OS/Version: Mac OS X 10.5
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: Ms.Build
        AssignedTo: [email protected]
        ReportedBy: [email protected]
         QAContact: [email protected]
          Found By: ---
           Blocker: ---


Created an attachment (id=330540)
 --> (http://bugzilla.novell.com/attachment.cgi?id=330540)
Test-case for UnloadAllProjects() method.

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 6.0; fr; rv:1.9.0.15)
Gecko/2009101601 Firefox/3.0.15 (.NET CLR 4.0.20506)

When invoking UnloadAllProjects() method on an instance of Engine that contains
1 or more projects, an exception is thrown.

Reproducible: Always

Steps to Reproduce:
1. Compile the attached test-case
2. Execute it

Actual Results:  
An exception is thrown because the collection being iterated is modified
concurrently:

Unhandled Exception: System.InvalidOperationException: out of sync
 at
System.Collections.Generic.Dictionary`2+Enumerator[System.String,Microsoft.Build.BuildEngine.Project].VerifyState
() [0x00000]
 at
System.Collections.Generic.Dictionary`2+Enumerator[System.String,Microsoft.Build.BuildEngine.Project].MoveNext
() [0x00000]
 at Microsoft.Build.BuildEngine.Engine.UnloadAllProjects () [0x00000]
 at Test.Program.Main (System.String[] args) [0x00000]


Expected Results:  
No exception should occur.

-- 
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
_______________________________________________
mono-bugs maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs

Reply via email to