Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Visual Studio: Fix debug builds #15300

Merged
merged 3 commits into from
Mar 11, 2024
Merged

Visual Studio: Fix debug builds #15300

merged 3 commits into from
Mar 11, 2024

Conversation

Megamouse
Copy link
Contributor

@Megamouse Megamouse commented Mar 10, 2024

  • Use common RuntimeLibrary settings for all regular 3rdparty libs
  • Use MulitThreadedDebugDLL instead of MulitThreadedDebug
  • Fix linking XAudio.lib in debug builds

The reason why we get the heap assert with MulitThreadedDebug is that we load Qt as DLL, so there is a different heap allocator for Qt and the rest of the project. This means that whenever we use a local Qt object that allocates on the heap (e.g. QString), we got the assert.

This implies that we should also consider moving to MulitThreadedDLL for release, which creates rpcs3.lib, or alternatively build and link Qt statically.

Fixes #15281

@Megamouse Megamouse added OS: Windows Build and CI Anything related to the build process and continuous integration labels Mar 10, 2024
@Megamouse Megamouse force-pushed the warnings branch 3 times, most recently from f70463d to 2be4700 Compare March 10, 2024 23:25
@Megamouse Megamouse merged commit 37dd1b3 into RPCS3:master Mar 11, 2024
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Build and CI Anything related to the build process and continuous integration OS: Windows
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cannot debug on Windows because of heap error
1 participant