hhblaze / DBreeze

C# .NET NOSQL ( key value store embedded ) ACID multi-paradigm database management system.
BSD 2-Clause "Simplified" License
532 stars 58 forks source link

RemoveSession is not called on "DBreeze.Exceptions.DBreezeException: One transaction can be used from one thread only!" #70

Closed Drofzz closed 2 years ago

Drofzz commented 2 years ago

Getting the DBreeze.Exceptions.DBreezeException: "One transaction can be used from one thread only!" The Session is not removed from the TransactionTablesLocker. meaning that any further attempt to try and created Transactions will fail... is this intended to be this way?

I know the error is bad, but somehow the cleanup fails, even inside a "using" statement.

hhblaze commented 2 years ago

It's OK, program should be rewritten to avoid using one transaction from several threads.