title: How to use mixed C++ & .Net dll in node.js? (Error: abort() has been called)
body: <p>I want to create a native node extension using a dll containing C++ and C# code in Visual Studio 2015. I cannot make it work following <a href="https://stackoverflow.com/q/11257690/709537">my own instructions</a> of yesteryear, which is based on the latest <code>node-gyp</code>.</p>
  
  <p>When not using the <code>/clr</code> option, I can run a program like the following just fine.</p>
  
  <pre><code>console.log("1");
  const addon = require('./build/Release/addon');
  console.log("2");
  </code></pre>
  
  <p>When enabling <code>/clr</code>, only the first call to log gets executed. When compiling the dll in debug mode, I get the following message:</p>
  
  <p><a href="https://i.stack.imgur.com/QkqtZ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/QkqtZ.png" alt="enter image description here"></a></p>
  
  <p>How to fix / debug this?</p>
  
  <p>(I know there's edge, but I am trying to go the node-gyp way)</p>