Relative Content

Tag Archive for c#wpfasync-awaitdeadlocksemaphore

Semaphore causing deadlock on WPF

DoAsync, ConnectFtpAsync, ConnectDbAsync all works on Console project when the number of tasks exceeds the semaphore’s limit.
However ConnectFtpAsync and ConnectDbAsync except DoAsync cause WPF project to freeze when the number of tasks exceeds the semaphore’s limit.

Semaphore causing deadlock on WPF

DoAsync, ConnectFtpAsync, ConnectDbAsync all works on Console project when the number of tasks exceeds the semaphore’s limit.
However ConnectFtpAsync and ConnectDbAsync except DoAsync cause WPF project to freeze when the number of tasks exceeds the semaphore’s limit.