# Executing application fails with code 0xc0000135 during build

**URL:** <https://travis-ci.community/t/executing-application-fails-with-code-0xc0000135-during-build/10440>\
**Category:** Windows\
**Created:** [November 4, 2020, 8:22am UTC](https://travis-ci.community/t/executing-application-fails-with-code-0xc0000135-during-build/10440 "2020-11-04T08:22:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![pasbi](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/pasbi/32/5479_2.png) [@pasbi](https://travis-ci.community/u/pasbi)\
**Post date:** [November 4, 2020, 8:22am UTC](https://travis-ci.community/t/executing-application-fails-with-code-0xc0000135-during-build/10440/1 "2020-11-04T08:22:05Z")

</div>

I have a rather complicated build setup:  
First, a command line executable (`ommpfritt-cli`) is built, then it is executed in order to generate some icons, which are then bundled into the actual application (`ommpfritt`).

The problem is, that on windows, execution of `ommpfritt-cli` fails with code `0xc0000135` (apparently a DLL is missing).  
I have the same setup on my local windows (MinGW) machine (same packages installed, same dlls in the build directory), and it works.  
It also works on travis with ubuntu.

I don’t know how to debug this, please advice!

> **[Travis CI - Test and Deploy Your Code with Confidence](https://travis-ci.org/github/pasbi/ommpfritt/jobs/741321907)**

---

<div class="post-metadata">

**Author:** ![native-api](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/native-api/32/430_2.png) [@native-api](https://travis-ci.community/u/native-api)\
**Post date:** [November 4, 2020, 7:15pm UTC](https://travis-ci.community/t/executing-application-fails-with-code-0xc0000135-during-build/10440/2 "2020-11-04T19:15:01Z")

</div>

See diagnosis steps in this post:

> [@Failing to run compiled Python extension](https://travis-ci.community/t/failing-to-run-compiled-python-extension/7456/7):
>
> Bottom line: change compiler flags to link to libgcc and libstdc++ statically. Or place them (with any transitive MinGW-specific dependencies) alongside the .pyd and distribute with your module. [I’ve diagnosed the problem with Process Monitor](https://travis-ci.org/native-api/travis-windows-pybind/builds/659302479) using the following code. This is the most reliable way because you get to see what the system is actually searching for, and where, rather than look at metadata and make assumptions. Since [Windows’ DLL search process](https://docs.microsoft.com/en-us/windows/win32/dlls/dynamic-link-library-search-order) is compilcated and very settings-de…

---

<div class="post-metadata">

**Author:** ![native-api](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/native-api/32/430_2.png) [@native-api](https://travis-ci.community/u/native-api)\
**Post date:** [November 7, 2020, 10:44pm UTC](https://travis-ci.community/t/executing-application-fails-with-code-0xc0000135-during-build/10440/3 "2020-11-07T22:44:37Z")

</div>

Split this topic on November 7, 2020, 10:44pm UTC

7 posts were split to a new topic: [Opengl32.dll is missing](https://travis-ci.community/t/opengl32-dll-is-missing/10472)
