title: INetFwRules getting stuck getting the count
body: <p>My code is getting stuck trying to get the count of a INetFwRules interface. The code below never returns or throws and just seems to wait on the Get_count() call. Any suggestion where to check are appreciated.</p>
  <pre><code>template &lt;class TP, class T, class T2&gt; long TestEnum&lt;TP, T, T2&gt;::count()
  {
      long count = 0;
      HRESULT hr = pInterfacePtr-&gt;get_Count( &amp;count );
      if( FAILED( hr ) )
          throw _com_error( hr );
          
      return count;
  }
  </code></pre>
  <p><a href="https://i.stack.imgur.com/lcnqJ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/lcnqJ.png" alt="enter image description here" /></a></p>