Program crashes by "out string"
<p>I am using this dll where one of the methods expects string as an argument by out, i.e.</p>

<pre><code>void function(out string param);
</code></pre>

<p>When I am passing the string by out, the program crashes. I am using C#.
The output I am getting in output debug window of VS2010 is as follows:
The program '[4116] Managed (v4.0.30319)' has exited with code -1073741819 (0xc0000005).</p>

<p>The problem is sudden and short so I don't know how to explain further, but if you have further questions let me know...</p>

<p>Update:
This is ActiveX dll and I came across the tutorial mentioning that COM returns string in Unicode. Is that what is causing the problem?</p>
