You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have been testing a few of the methods that take or return std::vector, e.g. cISC4BudgetSimulator::GetAllGroups and cISC4TractDeveloper::GetActiveStyles. These methods cause the game to crash when accessing the internal layout of the C++ type.
I fixed the crash by switching the vector type to the EASTL equivalent, which has the internal layout that SC4 expects.
I configured EASTL to use SC4's cIGZAllocatorService for its memory management, which appears to be what the game's vector type uses on Windows.
The text was updated successfully, but these errors were encountered:
0xC0000054
changed the title
Switch the standard library collection types to EASTL
Switch the vector type to EASTL
Jan 3, 2024
I have been testing a few of the methods that take or return
std::vector
, e.g.cISC4BudgetSimulator::GetAllGroups
andcISC4TractDeveloper::GetActiveStyles
. These methods cause the game to crash when accessing the internal layout of the C++ type.I fixed the crash by switching the vector type to the EASTL equivalent, which has the internal layout that SC4 expects.
I configured EASTL to use SC4's
cIGZAllocatorService
for its memory management, which appears to be what the game's vector type uses on Windows.The text was updated successfully, but these errors were encountered: