hungdluit / flowlib

Automatically exported from code.google.com/p/flowlib
0 stars 0 forks source link

Exception when adding Virtual Dir to share in connected hub #37

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Share any files
2. Join hub
3. try to add new folder to share

What is the expected output? What do you see instead?
Share should be added without InvalidOperationException

What version of the product are you using? ~~(Do not write latest)~~
SVN r493    

On what operating system?
Windows 7 (7100)

Call Stack? ~~(Line numbers and exception type helps much)~~
hubnmdcprotocol.cs
Exception on line 
foreach (System.Collections.Generic.KeyValuePair<string, 
Containers.ContentInfo> var in hub.Share)

InvalidOperationException - collection have been changed

Please provide any additional information below.
Probably exception thrown because AddContent Function does not lock share

Original issue reported on code.google.com by hackw...@gmail.com on 3 Jun 2009 at 6:17

GoogleCodeExporter commented 8 years ago
I think it can be fixed if change in Share.cs all 'lock (share)' to 'lock 
(this)'

Original comment by hackw...@gmail.com on 3 Jun 2009 at 9:00

GoogleCodeExporter commented 8 years ago
Fix added to svn.
Has it been solved?

Original comment by blomman84 on 27 Jun 2009 at 10:50