🦜 The Old New Thing
@devblogs.microsoft.com.oldnewthing@rss-parrot.net
I'm an automated parrot! I relay a website's RSS feed to the Fediverse. Every time a new post appears in the feed, I toot about it. Follow me to get all new posts in your Mastodon timeline!
Brought to you by the RSS Parrot.
---
Your feed and you don't want it here? Just
e-mail the birb.
The case of COM failing to pump messages in a single-threaded COM apartment
https://devblogs.microsoft.com/oldnewthing/20250314-00/?p=110965
Published: March 14, 2025 14:00
A customer encountered a hang caused by COM not pumping messages while waiting for a cross-thread operation to complete. They were using the task_sequencer class for serializing asynchronous operations on a UI thread they created to handle accessibility…
Making sure that a DLL loads only from your application directory
https://devblogs.microsoft.com/oldnewthing/20250313-00/?p=110963
Published: March 13, 2025 14:00
You can ask for it as an option, but think about what you're actually protecting against.
The post Making sure that a DLL loads only from your application directory appeared first on The Old New Thing.
What are the thread safety requirements of HSTRING and BSTR?
https://devblogs.microsoft.com/oldnewthing/20250312-00/?p=110960
Published: March 12, 2025 14:00
They do not have thread affinity.
The post What are the thread safety requirements of <CODE>HSTRING</CODE> and <CODE>BSTR</CODE>? appeared first on The Old New Thing.
What an insightful observation, you get to wear “the hat”
https://devblogs.microsoft.com/oldnewthing/20250311-00/?p=110958
Published: March 11, 2025 14:00
Maybe not so insightful.
The post What an insightful observation, you get to wear “the hat” appeared first on The Old New Thing.
How do I destroy an ABI pointer that I extracted from a C++/WinRT object?
https://devblogs.microsoft.com/oldnewthing/20250310-00/?p=110952
Published: March 10, 2025 14:00
You can clean it up the ABI way, whatever that is.
The post How do I destroy an ABI pointer that I extracted from a C++/WinRT object? appeared first on The Old New Thing.
To some people, time zones are just a fancy way of sounding important, episode 2
https://devblogs.microsoft.com/oldnewthing/20250307-00/?p=110946
Published: March 7, 2025 15:00
Words have meaning.
The post To some people, time zones are just a fancy way of sounding important, episode 2 appeared first on The Old New Thing.
How can I choose a different C++ constructor at runtime?
https://devblogs.microsoft.com/oldnewthing/20250306-00/?p=110942
Published: March 6, 2025 15:00
Make somebody else do it, and then use copy elision.
The post How can I choose a different C++ constructor at runtime? appeared first on The Old New Thing.
I tried to subscribe to a C++/WinRT event, but my callback was never called
https://devblogs.microsoft.com/oldnewthing/20250305-00/?p=110934
Published: March 5, 2025 15:00
Check how you registered your event handler.
The post I tried to subscribe to a C++/WinRT event, but my callback was never called appeared first on The Old New Thing.
Microspeak: Respin
https://devblogs.microsoft.com/oldnewthing/20250304-00/?p=110929
Published: March 4, 2025 15:00
Spin it up again, baby.
The post Microspeak: Respin appeared first on The Old New Thing.
Lexically scoped functions accessing parent locals: The display
https://devblogs.microsoft.com/oldnewthing/20250303-00/?p=110925
Published: March 3, 2025 15:00
Using a well-known location instead of copying frame pointers.
The post Lexically scoped functions accessing parent locals: The display appeared first on The Old New Thing.
C++/WinRT implementation inheritance: Notes on winrt::implements, part 8
https://devblogs.microsoft.com/oldnewthing/20250228-00/?p=110916
Published: February 28, 2025 15:00
Comparing the options.
The post C++/WinRT implementation inheritance: Notes on <CODE>winrt::implements</CODE>, part 8 appeared first on The Old New Thing.