Click here to Skip to main content
15,920,603 members
Home / Discussions / C#
   

C#

 
GeneralRe: Collection was modified; Enumeration Operation may not execute Pin
carlop()16-May-06 21:15
carlop()16-May-06 21:15 
It was only an example. You don't use foreach but probably the problem is that while DataBind() method enumerates over the TestCollection another piece of code (maybe the same but from another thread) is doing the same. So try to lock the code that acess TestCollection before use it:

lock (TestCollection) {
ddlTest.DataSource= TestCollection;
ddlTest.DataBind();
}


paco
QuestionA beginnering question Pin
mehrdadc4816-May-06 6:13
mehrdadc4816-May-06 6:13 
AnswerRe: A beginnering question Pin
Vikram A Punathambekar16-May-06 6:26
Vikram A Punathambekar16-May-06 6:26 
AnswerRe: A beginnering question Pin
coolvinx16-May-06 11:23
coolvinx16-May-06 11:23 
QuestionXML Remove Node Problem Pin
Phoen2516-May-06 6:07
Phoen2516-May-06 6:07 
AnswerRe: XML Remove Node Problem Pin
Phoen2516-May-06 6:40
Phoen2516-May-06 6:40 
QuestionRight click on flash player Pin
mehrdadc4816-May-06 5:58
mehrdadc4816-May-06 5:58 
Questionbuild vs rebuild Pin
mehrdadc4816-May-06 5:56
mehrdadc4816-May-06 5:56 
AnswerRe: build vs rebuild Pin
Rob Philpott16-May-06 5:59
Rob Philpott16-May-06 5:59 
AnswerRe: build vs rebuild Pin
Guffa16-May-06 7:09
Guffa16-May-06 7:09 
GeneralRe: build vs rebuild Pin
Robert Rohde16-May-06 8:17
Robert Rohde16-May-06 8:17 
QuestionDraw in web Pin
papa198016-May-06 5:39
papa198016-May-06 5:39 
AnswerRe: Draw in web Pin
MoustafaS16-May-06 8:02
MoustafaS16-May-06 8:02 
AnswerRe: Draw in web Pin
Jakob Farian Krarup16-May-06 8:20
Jakob Farian Krarup16-May-06 8:20 
GeneralRe: Draw in web Pin
papa198016-May-06 19:12
papa198016-May-06 19:12 
QuestionApply a codec on WAVE stream Pin
gbonnet16-May-06 5:23
gbonnet16-May-06 5:23 
AnswerRe: Apply a codec on WAVE stream Pin
martin_hughes16-May-06 12:11
martin_hughes16-May-06 12:11 
GeneralRe: Apply a codec on WAVE stream Pin
gbonnet16-May-06 22:21
gbonnet16-May-06 22:21 
GeneralRe: Apply a codec on WAVE stream Pin
gbonnet17-May-06 0:02
gbonnet17-May-06 0:02 
QuestionString Manipulation Pin
martin_hughes16-May-06 5:15
martin_hughes16-May-06 5:15 
AnswerRe: String Manipulation Pin
Paul Brower16-May-06 5:28
Paul Brower16-May-06 5:28 
GeneralRe: String Manipulation Pin
Josh Smith16-May-06 6:10
Josh Smith16-May-06 6:10 
AnswerRe: String Manipulation Pin
Guffa16-May-06 5:53
Guffa16-May-06 5:53 
AnswerRe: String Manipulation Pin
Eric Dahlvang16-May-06 6:09
Eric Dahlvang16-May-06 6:09 
AnswerRe: String Manipulation Pin
coolvinx16-May-06 11:33
coolvinx16-May-06 11:33 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.