Skip to content

The Dummy Programmer

Stories of daily programming

  • Home
  • The Dummy Programmer Robot
    • Overview
    • Version history & downloads
    • Tutorials
      • TDP Robot – The basics
      • A simple SQL Server backup solution
      • A simple SQL Server backup solution – A next step
  • My other dummy projects
  • Games
    • Space Y: An Asteroids clone
  • Services
    • What’s my user agent
    • What’s my IP address
  • Donate
  • About
  • Toggle search form

Category: Threading

C# async / await behind the scenes

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…

Read More “C# async / await behind the scenes” »

C#

Working with C# async / await keywords (part 3 of 3)

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….

Read More “Working with C# async / await keywords (part 3 of 3)” »

C#

Working with C# async / await keywords (part 2 of 3)

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…

Read More “Working with C# async / await keywords (part 2 of 3)” »

C#

Working with C# async / await keywords (part 1 of 3)

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…

Read More “Working with C# async / await keywords (part 1 of 3)” »

C#

Make user interface calls in thread safe way in Windows Forms

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.’…

Read More “Make user interface calls in thread safe way in Windows Forms” »

C#

Copyright © 2022 The Dummy Programmer | Privacy Policy |

Powered by PressBook Masonry Dark