tagged [deadlock]
How to get efficient Sql Server deadlock handling in C# with ADO?
How to get efficient Sql Server deadlock handling in C# with ADO? I have a class 'Database' that works as a wrapper for ADO.net. For instance, when I need to execute a procedure, I call Database.Execu...
- Modified
- 1 Apr at 09:56
C++ terminate called without an active exception
C++ terminate called without an active exception I am getting a C++ error with threading: Here is the code: ``` #include #include #include #include template class blocking_stream { public: blocking_...
- Modified
- 24 Feb at 02:49
How to solve SQL Server Error 1222 i.e Unlock a SQL Server table
How to solve SQL Server Error 1222 i.e Unlock a SQL Server table I am working in a database where I load data in a raw table by a data loader. But today the data loader got stuck for unknown reasons. ...
- Modified
- 25 Mar at 18:0
An async/await example that causes a deadlock
An async/await example that causes a deadlock I came across some best practices for asynchronous programming using c#'s `async`/`await` keywords (I'm new to c# 5.0). One of the advices given was the f...
- Modified
- 20 Nov at 11:53
TransactionScope Prematurely Completed
TransactionScope Prematurely Completed I have a block of code that runs within a TransactionScope and within this block of code I make several calls to the DB. Selects, Updates, Creates, and Deletes, ...
- Modified
- 25 Apr at 18:15
What is wrong with locking non-static fields? What is the correct way to lock a particular instance?
What is wrong with locking non-static fields? What is the correct way to lock a particular instance? Why is it considered bad practice to lock non-static fields? And, if I am not locking non-static f...
- Modified
- 23 May at 11:51
Deadlock when combining app domain remoting and tasks
Deadlock when combining app domain remoting and tasks My app needs to load plugins into separate app domains and then execute some code inside of them asynchronously. I've written some code to wrap `T...
- Modified
- 28 Feb at 19:2
Deadlock when invoking the UI thread from a worker thread
Deadlock when invoking the UI thread from a worker thread I have a deadlock when I invoke the UI thread from a worker thread. Indeed, the worker thread is blocked on the invoke line: The weird thing i...
- Modified
- 15 Sep at 18:24
C# Threading.Suspend in Obsolete, thread has been deprecated?
C# Threading.Suspend in Obsolete, thread has been deprecated? In my application, I am performing my file reading by another thread(other than the GUI thread). There are two buttons that suspend and re...
- Modified
- 30 May at 09:44
Transaction deadlocks, how to design properly?
Transaction deadlocks, how to design properly? So I'm working on this Entity Framework project that'll be used as kind of a DAL and when running stress tests (starting a couple of updates on entities ...
- Modified
- 3 Jul at 09:46
.NET 4.0 and the dreaded OnUserPreferenceChanged Hang
.NET 4.0 and the dreaded OnUserPreferenceChanged Hang I have been plagued with the dreaded OnUserPreferenceChanged Hang that's refered to quite nicely by Ivan Krivyakov, here: [http://ikriv.com/en/pro...
- Modified
- 23 May at 12:2
How to trigger (NOT avoid!) an HttpClient deadlock
How to trigger (NOT avoid!) an HttpClient deadlock There are a number of questions on SO about how to deadlocks in async code (for example, `HttpClient` methods) being called from sync code, like [thi...
- Modified
- 3 May at 13:1
Async call to WCF client blocks subsequent synchronous calls
Async call to WCF client blocks subsequent synchronous calls I'm seeing a problem with WCF when calling the generated Async methods on the client... If I await on an async method, and then subsequentl...
- Modified
- 14 Jun at 17:43
Why doesn't this deadlock in ASP.NET Core Web API?
Why doesn't this deadlock in ASP.NET Core Web API? I read 's post [Don't Block on Async Code](https://blog.stephencleary.com/2012/07/dont-block-on-async-code.html), so I created an project: ``` class ...
- Modified
- 9 Feb at 02:0
C# ServiceStack post Deadlock
C# ServiceStack post Deadlock I am calling an API many times per second. Its causing deadlocks. Can anyone propose a solution to solving this? I am running .netcore 2.2 MVC service ``` public async Ta...
- Modified
- 1 Feb at 02:27
Deadlock in System.Component.TypeDescriptor
Deadlock in System.Component.TypeDescriptor I have spent a lot of time (googling, reflecting .net binaries, etc) trying to resolve the following problem: I see a deadlock in our application (ASP.NET M...
- Modified
- 22 Jun at 21:37
update and insert queries creating a deadlock
update and insert queries creating a deadlock I will try to explain my problem as detailed as possible, and i would appreciate any help/suggestion. My problem is regarding a deadlock being caused by t...
- Modified
- 7 Sep at 10:15
Deadlock when accessing StackExchange.Redis
Deadlock when accessing StackExchange.Redis I'm running into a deadlock situation when calling [StackExchange.Redis](https://github.com/StackExchange/StackExchange.Redis). I don't know exactly what is...
- Modified
- 23 May at 12:3