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.
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.
Alternatively is there any way to fix the CLR Profiler? Someone else asked about that (Visual Studio Device: Unsupported Instruction Set error while connecting to .Net CF CLR Profiler) but no-one even understood the question, let alone answered it.
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.