Crash on Windows MSVC build around gio
git bisect pointed that !1754 (merged) is the bad commit.
Since the commit, we are trying various complicated operations in dllmain and some of them are not recommended by MS (see also https://docs.microsoft.com/en-us/windows/win32/dlls/dynamic-link-library-best-practices), such as
- Call the registry functions
- Call CreateThread
- memory management function
- (maybe more)
I can reproduce this crash simply by using meson test -Cbuild appmonitor
under gst-build devenv environment