Skip to content

Commit dcde30d

Browse files
bugfix(sentry): Prevent access violation from UI component initialization on non-UI thread
1 parent 8503c3b commit dcde30d

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

GeneralsMD/Code/GameEngine/Source/GameNetwork/GeneralsOnline/OnlineServices_Init.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1042,6 +1042,11 @@ void NGMP_OnlineServicesManager::InitSentry()
10421042
}, nullptr);
10431043
#endif
10441044

1045+
// Disable the crash handler backend to prevent it from attempting to
1046+
// initialize Windows UI components (SystemNavigationManagerStatics::GetForCurrentView)
1047+
// on a non-UI thread during sentry_init(), which causes an access violation.
1048+
sentry_options_set_backend(options, nullptr);
1049+
10451050
sentry_init(options);
10461051
#endif
10471052
}

0 commit comments

Comments
 (0)