Good morning to everyone! I’m sure you already know C#’s async / await keywords and the benefit of asynchronous programming in real world. In my blog we already talked about them in these posts: Working with C# async / await keywords (part 1 of 3) Working with C# async / await keywords (part 2 of…
In previous posts we talked about how use the Task object, async / await keywords and how to cancel a running task. In this last post I want to talk about another important point regarding task management: exception handling. We will resume the example program created in the first post, which you can download here….
In the previous post we saw some use cases of the Task object and the async / await keywords. We saw how we can run two long tasks, one dependent on the other, without blocking the main thread and the user interface. In our example we used an async event handler, which is marked with…
Introduced with C# 5.0, the async / await pattern was born with the intention of simplifying asynchronous programming. You can find these keywords in many programming language, but in this post we will specifically talk about C#’s implementation. Let’s start by creating a simple Windows Forms applications to do some tests (click here to download…
If you are working on a Windows Forms project and you are using threads in some way, by accessing the controls from a thread other than the main one, you may have received this error message: System.InvalidOperationException: ‘Cross-thread operation not valid: Control ‘TxtCounter1′ accessed from a thread other than the thread it was created on.’…
The technical storage or access is strictly necessary for the legitimate purpose of enabling the use of a specific service explicitly requested by the subscriber or user, or for the sole purpose of carrying out the transmission of a communication over an electronic communications network.
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
The technical storage or access that is used exclusively for statistical purposes.The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
The technical storage or access is required to create user profiles to send advertising, or to track the user on a website or across several websites for similar marketing purposes.