What does ExitCode -1073741502 mean?

為{幸葍}努か 提交于 2019-12-07 02:15:12

问题


I'm using the GetExitCodeProcess API to determine the exit reason for a process.

When my process fails, I get the error code -1073741502.

How can this value be converted into a value that I could google for?

Thank you.

Edit: Well, 1073741502 appears on Google, but not -1073741502. Why does my error code have a minus?


回答1:


Converted to hexadecimal, the value is 0xC0000142.
Windows NTSTATUS values show that your error code is STATUS_DLL_INIT_FAILED which is:

{DLL Initialization Failed} Initialization of the dynamic link library %hs failed. The process is terminating abnormally.




回答2:


Ordinarily, return-codes consist of several bit-fields. If I've done my math correctly, this translates to 0xffffffffc0000142 which probably consists of a group 0xc0000 and error-code 0x0142. If you're Googling for a code, also search for the hex string.

And, sure enough, that produces a hit. There's even a StackOverflow entry that seems to directly address your problem:

CreateProcess succeeds, but GetExitCodeProcess returns C0000142



来源:https://stackoverflow.com/questions/38246420/what-does-exitcode-1073741502-mean

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!