ASync function called even when not used
<p>I have a very strange problem and I can't explain it.</p>

<p>I'm generating an interface from a wsdl definition, I leave the settings at default so it generates task based methods as well as asynchronous methods. I however only use the task based methods.</p>

<p>This works fine on my machine and on others outside of my client's server. However when I upload to my clients network, my code throws an exception in an asynchronous method that has no reason to be called.</p>

<p>The solution is to wipe the interfaces and ensure the asynchronous methods aren't generated but I'd love to know why they are called. Dead code is dead surely.</p>

<p>Edit #1:</p>

<pre><code>request()
{
   requestMsg = initreqMsg();
   try
   {
       responseMsg = GetResp(requestMsg);
   }
   catch(RuntimeError e)
   {
       MessageBox(e.str());
   }
}
</code></pre>

<p>What seems to be happening is instead of calling GetResp(), the client is calling GetRespASync() and the exception caught in catch(RuntimeError e). This is with oracle RightNow workspace addin and I haven't personally been able to replicate. I first thought they we're running through some automated test suite and triggered the function but no, on my client's machine the code has mutated in a very consistent manner. I'm not ruling out a bug in the plugin architecture, or corruption of the addin but it's happened twice now.</p>

<p>May change my name to "No Clu" ;)</p>