The Old New Thing

Uncategorized

Windows Runtime delegates and object lifetime in C++/CX

You specify the lifetime rules, typically weak.

Windows Runtime delegates and object lifetime in C# and other GC languages

You've left the comfort of the CLR.

The secret signal that tells Windows Runtime events that the event recipient no longer exists

Watch out that you don't make the signal by mistake.

If each thread’s TEB is referenced by the fs selector, does that mean that the 80386 is limited to 1024 threads?

They don't all have to be different simultaneously.

When would CopyFile succeed but produce a file filled with zeroes?

Did the bytes actually make it to the disk?

Why are Bluetooth functions exported from the infrared control panel?

Artifacts of service pack constraints from long ago.

Stupid git commit-tree tricks, Part 7: Combining more than two files into one while preserving line history, manual octopus merging

Sometimes you just have to take things into your own hands.

Stupid git tricks: Combining two files into one while preserving line history

Starting with the two-file case.

Stupid git commit-tree tricks, Part 6: Resetting by reusing an earlier tree

Just take me back.

Stupid git commit-tree tricks, Part 5: Squashing without git rebase

Working completely from trees.