CriticalSection crashes with VS 2022

This is true. When you set up it the right way, you can eliminate the singleton lifetime problems.

There is one problem I wasn’t able to fix:

It looks like it is not possible to set a different LookAndFeel with other typefaces to a specific component. Some weird singleton magic happens in the background.

I agree :slight_smile:

A short resume:
Singletons are useful in the plug-in world when you share resources and solve technical problems. But they are a bad design choice otherwise.