1

I've got a C# application running on Windows CE smart device and I recently added a new graphing option which results in a "OutOfMemory" exception after running for a few hours. How do I find what is going wrong? The code looks fine, its based on one of the previous graphing options that runs for weeks without a problem.

I've tried the Debug > Windows > Memory options in VS 2005, but they all give the message "Unavailable when debuggee is running." I've also tried attaching to the process using the remote debugging tools (specifically the Windows CE Remote Process Viewer), but there's not enough functionality to see what I'm looking for.

Are there tools in VS 2005 to analyse either a remote C# app or one running locally (ie. Win32)?

AlainD
  • 5,413
  • 6
  • 45
  • 99
  • You could try [the 14-day free trial of Redgate's Ants memory analyser](http://www.red-gate.com/products/dotnet-development/ants-memory-profiler/). Not sure if it supports CE tho. – Matthew Watson Apr 23 '15 at 09:18
  • @MatthewWatson: Thanks, am about to send an email to their sales team to ask whether it supports WinCE, VS2005, etc. Have you had experience of this product? – AlainD Apr 23 '15 at 09:31
  • 1
    Good grief, why the vote down? – AlainD Apr 23 '15 at 09:54
  • @MatthewWatson: Just had an email response from Red Gate and they don't target the CF version of .NET, so unfortunately Ants isn't an option. – AlainD Apr 23 '15 at 09:56

1 Answers1

1

a) see Memory profiler for .NET Compact Framework

b) see CF remote performance and ... viewer: http://www.microsoft.com/en-us/download/details.aspx?id=13442&751be11f-ede8-5a0c-058c-2ee190a24fa6=True

looks like you have a memory leak in code.

Community
  • 1
  • 1
josef
  • 5,951
  • 1
  • 13
  • 24