Skip to content

Using ConcurrentDictionary instead of Dictionary #423

Closed
@Coogison

Description

@Coogison

Hello,

we have discovered a problem using your code in multithreading application.

System.IndexOutOfRangeExceptionIndex was outside the bounds of the array. Raw System.Collections.Generic.Dictionary<TKey, TValue>.Insert(TKey key, TValue value, bool add) System.Collections.Generic.Dictionary<TKey, TValue>.set_Item(TKey key, TValue value) SQLite.SQLiteConnection.GetMapping(Type type, CreateFlags createFlags) SQLite.SQLiteCommand.ExecuteQuery<T>() SQLite.TableQuery<T>.GetEnumerator() System.Collections.Generic.List<T>.List(IEnumerable<_> collection) System.Linq.Enumerable.ToList<TSource>(IEnumerable<_> source) VykazPrace.Core.BusinessLayer.DbSet<T>.Query(Expression<_> wherePred)

And we think that it is connected to the usage of classic Dictionaries which are not thread safe instead of ConcurrentDictionaries.

Do you think it might be connected or is this completely irrelevant?

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions