title: GC with C# and C++ in same solution
body: <p>I have a solution consisting of a number of C# projects.  It was written in C# to get it operational quickly.  Garbage collections are starting to become an issue—we are seeing some 100 ms delays that we'd like to avoid.</p>
  <p>One thought was to re-write it in C++, project by project.  But if you combine C# with unmanaged C++, will the threads in the C++ projects also be frozen by garbage collections?</p>
  <h3>UPDATE</h3>
  <p>Thanks for your replies.  This is, in fact, an app where 100 ms might be significant.  It was probably a poor decision to build it in C#, but it was essential that it be up and running quickly at the time.</p>
  <p>Right now, we're using Windows' <a href="http://msdn.microsoft.com/en-us/library/dd742877%28VS.85%29.aspx" rel="nofollow noreferrer">Multimedia Timers</a> to fire an event every 5 ms.  We do see some 100+ ms gaps, and we've confirmed by checking the GC counters that these always occur during a collection.  Optimization is on; built in Release mode.</p>