title: Getting debug data from the GC in .NET Compact Framework 3.5
body: <p>We are trying to debug a memory leak in a .NET Compact Framework application running on Windows Embedded Compact 7. Unfortunately we can't use the CLR Profiler because it generates an "unsupported instruction set" error message and is apparently incompatible with this set-up.</p>
  
  <p>We can see all our objects being disposed but they are never finalized and freed up, causing the app to eventually run out of memory. There must be references left somewhere but without any debugging tools we can't track them down. Is there a way to dump data from the Garbage Collector from within out code for debugging? There does not seem to be an API but clearly the CLR Profiler has some way of doing it.</p>
  
  <p>Alternatively is there any way to fix the CLR Profiler? Someone else asked about that (<a href="https://stackoverflow.com/questions/14135850/visual-studio-device-unsupported-instruction-set-error-while-connecting-to-net/">Visual Studio Device: Unsupported Instruction Set error while connecting to .Net CF CLR Profiler</a>) but no-one even understood the question, let alone answered it.</p>
  
  <p>Note: I'm not looking for help with our code and can't post it here (it is proprietary and huge), just with the debugging tools. Thanks.</p>