|
May
13 |
|
awarded | Popular Question |
|
Mar
10 |
|
awarded | Teacher |
|
Feb
4 |
|
answered | Replace bookmark text in Word file using Open XML SDK |
|
Jul
28 |
|
comment |
getting argument exception in concurrent dictionary when sorting and displaying as it is being updated Thanks guys, Nicholas had the neat idea of using the ToArray() on the concurrent collection itself so we can -safely- take a snapshot as Michael suggested initially. |
|
Jul
28 |
|
accepted | getting argument exception in concurrent dictionary when sorting and displaying as it is being updated |
|
Jul
28 |
|
comment |
getting argument exception in concurrent dictionary when sorting and displaying as it is being updated Thanks! this clears things up, I was uncomfortable with the idea of taking a full lock on a concurrent collection (I wonder if that is ever a good idea). |
|
Jul
27 |
|
comment |
getting argument exception in concurrent dictionary when sorting and displaying as it is being updated Thanks Michael, Shain. Synchronization seems to be the way to go, but this is not the complete solution right? The lock needs to be taken by each of the updating threads as well - right? But that will kind of defeat the purpose of using concurrent dictionary - the same could be done with unsafe dictionary as we are locking the whole thing anyway. Some how I need full sync between display and updating group, and fine grained sync (exploiting concurrent dictionary) between all the threads that are updating. |
|
Jul
27 |
|
comment |
getting argument exception in concurrent dictionary when sorting and displaying as it is being updated I have updated with the stack trace. The exception occurs in the foreach statement in the WriteBatch function. Yes it is some kind of race, but I would really like to know why its happening. The idea of taking a snapshot with ToArray() is good, but doesnt that cause a performance overhead and unnecessary copying? What about just synchronizing on the whole concurrent dictionary when displaying? |
|
Jul
27 |
|
revised |
getting argument exception in concurrent dictionary when sorting and displaying as it is being updated added 1001 characters in body |
|
Jul
27 |
|
asked | getting argument exception in concurrent dictionary when sorting and displaying as it is being updated |
|
Jul
18 |
|
awarded | Tumbleweed |
|
Jul
11 |
|
asked | How to sample from joint distribution given conditional distributions |
|
Feb
18 |
|
awarded | Scholar |
|
Feb
18 |
|
comment |
returning column from a std vector of fusion vectors, without copying very helpful answer, thanks!! |
|
Feb
18 |
|
accepted | returning column from a std vector of fusion vectors, without copying |
|
Feb
18 |
|
comment |
returning column from a std vector of fusion vectors, without copying I guess I'm ok with either, but I'd like to know what the difference would be. |
|
Feb
17 |
|
asked | returning column from a std vector of fusion vectors, without copying |
|
Jan
9 |
|
awarded | Supporter |
|
Jan
9 |
|
comment |
how can i do binary search on an array of structs w.r.t a particular field value in c#? @kendfrey, James, Jon. Thanks for the responses guys. Its not that I don't want to do something, but I am asking what the most elegant way would be in your opinions. I guess James and Jon think a dummy struct is the best. Kendfrey, your solution looks good without dummy structs - but would you prefer dummy structs to it? |
|
Jan
9 |
|
asked | how can i do binary search on an array of structs w.r.t a particular field value in c#? |