Skip to content

Move NextGenTransport library linking to source file to prevent early DLL loading - #205

Open
seer-by-sentry[bot] wants to merge 1 commit into
mainfrom
seer/defer-nextgentransport-lib-linking
Open

Move NextGenTransport library linking to source file to prevent early DLL loading#205
seer-by-sentry[bot] wants to merge 1 commit into
mainfrom
seer/defer-nextgentransport-lib-linking

Conversation

@seer-by-sentry

@seer-by-sentry seer-by-sentry Bot commented Jan 3, 2026

Copy link
Copy Markdown

Fixes CLIENT-1G9. The issue was that: libprotobuf's static constructor prematurely accessed Windows TSF/IME global compartment, causing an access violation before WinMain initialized the environment.

  • Moved #pragma comment(lib, ...) directives for NextGenTransport dependencies (including ValveNetworkingSockets libraries) from NextGenTransport.h to NextGenTransport.cpp.
  • This prevents early DLL loading during static initialization, ensuring libraries are loaded only when NextGenTransport is actually instantiated (after the Windows application window has been created).

This fix was generated by Seer in Sentry, triggered automatically. 👁️ Run ID: 8129363

Not quite right? Click here to continue debugging with Seer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants