Many thanks for your answer.
Here are the facts:
The app is about 98kB ( value given by Visual Studio when deploying the app)
It parses a txt file on the SD card and according to the configuration of that file, it logs on SD files a lot of events coming from analog, digital and 2 com port input.
I started to rewrite the famous Debug.GC(true) everywhere in the app to locate where is the leakage. It gives at least some indications about where to be focused on.
The weird thing is that running two times the same application doesn’t crash at the same place (however it runs out of mem before logging anything and when launch on visual it crashes when parsing the txt file)
Furthermore, is anyone can explain me why the application seems to run better on its own than when launch by Visual (in release mode). Is that related to deugging stuffs?
Finally do you know if there’s a good profiling tool abble to handle netmf and c#?
Again many thanks for your interest in this post