Bug: bwheadless.exe displays error 126 when failing to inject BWAPI.dll. I have only encountered this error while using BWAPI 4.2.0 on Windows 7. Upon further investigation, it seems the Microsoft Visual C++ 2015 runtime files were missing. Installing the Microsoft Visual C++ 2015 Redistributable Package from the official Microsoft website resolved the issue. I assume this same error would also be displayed for any other set of missing VC runtime files.
Fix: Install the Microsoft Visual C++ 2015 Redistributable Package
Enhancement: Find an elegant solution to resolve this without requiring users to manually download and install the VC runtime files themselves.
Bug:
bwheadless.exedisplayserror 126when failing to injectBWAPI.dll. I have only encountered this error while using BWAPI 4.2.0 on Windows 7. Upon further investigation, it seems the Microsoft Visual C++ 2015 runtime files were missing. Installing theMicrosoft Visual C++ 2015 Redistributable Packagefrom the official Microsoft website resolved the issue. I assume this same error would also be displayed for any other set of missing VC runtime files.Fix: Install the
Microsoft Visual C++ 2015 Redistributable PackageEnhancement: Find an elegant solution to resolve this without requiring users to manually download and install the VC runtime files themselves.