Windows: Enable Segment Heap + Unify resource file - #1276
Conversation
JeromeMartinez
left a comment
There was a problem hiding this comment.
Segment Heap is not compatible with Windows 7 (AI says that behavior is random, sometimes crashes), and we still support it.
MSVC 2026 removed the support of Windows 7 so no problem there, but MSVC 2022 still has the support of Windows 7 and we currently use that in production for this reason.
Please remove this feature from MSVC 2022 project.
Then it will be ready for when we stop to support Windows 7 (we'll move to MSVC 2026 when it is the case).
It is supported on Windows 10 2004 onwards. Since it is only a flag in manifest of exe, older Windows should just ignore it. |
Challenging AI makes it changing its mind about Windows 7, I'll give it a try.
|
Seems packaged apps already default to Segment Heap. Checking MediaInfo Qt installed from MSIX package: |

Opt-in to using Segment Heap for Windows CLI and Qt GUI
As described by Microsoft in latest MSVC changelog:
Unify resource file
I just noticed that the MSVC2026 binary has version 25.10. This is because the resource file is one copy per MSVC version and stored together with project file and version update script was not updated to handle the new one. So now follow MediaInfoLib where there is only one resource file and stored in sources directory. This also makes CMake one not dependent on presence of MSVC2022 files. @g-maxime need to update version script to update the new location when this PR is merged.