The Old New Thing

Practical development throughout the evolution of Windows.

Latest posts

How to clone a Windows Runtime map in the face of possible concurrent modification, part 2
Jul 20, 2023
Post comments count 0
Post likes count 0

How to clone a Windows Runtime map in the face of possible concurrent modification, part 2

Raymond Chen
Raymond Chen

Applying what we learned about vectors.

How to clone a Windows Runtime map in the face of possible concurrent modification, part 1
Jul 19, 2023
Post comments count 0
Post likes count 0

How to clone a Windows Runtime map in the face of possible concurrent modification, part 1

Raymond Chen
Raymond Chen

Applying what we learned about vectors.

How to clone a Windows Runtime vector in the face of possible concurrent modification, part 4
Jul 18, 2023
Post comments count 0
Post likes count 0

How to clone a Windows Runtime vector in the face of possible concurrent modification, part 4

Raymond Chen
Raymond Chen

Translating to C++/CX and dealing with some quirks of that language.

Cloning a Windows Runtime vector in the face of possible concurrent modification, denial of service?
Jul 17, 2023
Post comments count 0
Post likes count 0

Cloning a Windows Runtime vector in the face of possible concurrent modification, denial of service?

Raymond Chen
Raymond Chen

Can you get sent into an infinite loop?

How to clone a Windows Runtime vector in the face of possible concurrent modification, part 3
Jul 14, 2023
Post comments count 0
Post likes count 0

How to clone a Windows Runtime vector in the face of possible concurrent modification, part 3

Raymond Chen
Raymond Chen

Dealing with the pesky std::vector<bool>.

How to clone a Windows Runtime vector in the face of possible concurrent modification, part 2
Jul 13, 2023
Post comments count 0
Post likes count 0

How to clone a Windows Runtime vector in the face of possible concurrent modification, part 2

Raymond Chen
Raymond Chen

Trying to make a generic solution.

How to clone a Windows Runtime vector in the face of possible concurrent modification, part 1
Jul 12, 2023
Post comments count 2
Post likes count 0

How to clone a Windows Runtime vector in the face of possible concurrent modification, part 1

Raymond Chen
Raymond Chen

Backing off and retrying, but the detection is the tricky part.

Why does the compiler complain about a missing constructor when I’m just resizing my <CODE>std::vector</CODE> to a smaller size?
Jul 11, 2023
Post comments count 0
Post likes count 1

Why does the compiler complain about a missing constructor when I’m just resizing my std::vector to a smaller size?

Raymond Chen
Raymond Chen

The compiler doesn't know that you're shrinking.

How to wait for multiple C++ coroutines to complete before propagating failure, concluding remarks
Jul 10, 2023
Post comments count 1
Post likes count 1

How to wait for multiple C++ coroutines to complete before propagating failure, concluding remarks

Raymond Chen
Raymond Chen

The things that could go wrong before you even start.