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
@@ -1058,6 +1059,36 @@ The following specifiers are available:
1058
1059
* w - word (32-bit value)
1059
1060
* g - giant word (64-bit value)
1060
1061
1062
+
## Windows Error Codes
1063
+
1064
+
When debugging programs on Windows, sometimes one will run into an error message with a mysterious error code. E.x.:
1065
+
1066
+
```
1067
+
note: command had no output on stdout or stderr
1068
+
error: command failed with exit status: 0xc0000135
1069
+
```
1070
+
1071
+
These on windows are called HRESULT values. In the case above, the HRESULT is telling me that a DLL was not found. I discovered this
1072
+
by running the Microsoft provided [System Error Code Lookup Tool](https://learn.microsoft.com/en-us/windows/win32/debug/system-error-code-lookup-tool). After running
1073
+
this tool with the relevant error code on a windows machine, I got back the following result:
1074
+
1075
+
```
1076
+
# for hex 0xc0000135 / decimal -1073741515
1077
+
STATUS_DLL_NOT_FOUND ntstatus.h
1078
+
# The code execution cannot proceed because %hs was not
1079
+
# found. Reinstalling the program may fix this problem.
1080
+
# as an HRESULT: Severity: FAILURE (1), FACILITY_NULL (0x0), Code 0x135
0 commit comments