Problems with running the application using OpenSSL

-2

Good day, colleagues. I'm building an application using OpenSSL - the application crashes with an error code: 0xc0000142.

The standard application openssl.exe also crashes with this error code. What could be the trouble?

c++
windows
openssl
mingw
mingw32
asked on Stack Overflow Jul 21, 2017 by Crazy85

1 Answer

0

According to Microsoft Support in KB 2701373:

This issue is caused by an error in the Microsoft.powershell.consolehost.dll file. When a Windows PowerShell script calls the Console.Write method, or when you run an executable file for an application from a Windows PowerShell session, values are written into the PowerShell console. Additionally, a corresponding console handle is created. When many console handles are created, the console handles leak, and the issue that is described in the "Symptoms" section occurs.

There's also a question in the Microsoft Communities, CMD.EXE error 0xc0000142, and the answer appear to be "reinstall your application".

I'm not sure how MinGW affects the problem. Since MinGW is abandoned, I'm guessing its the problem and you likely won't be able to fix it. Its probably providing an old, buggy version of something with ABI problems.

Maybe you can use Cygwin for Linux on Windows. Cygwin is still actively developed and maintained.

answered on Stack Overflow Jul 21, 2017 by jww

User contributions licensed under CC BY-SA 3.0