15

I want to use the memory profiler of the visual studio 2013 ultimate for profiling a WPF application. But there seems to be a problem: After running the profiler there is no data available/showed. I use Windows 8.1 x64

I get this error:

DA0002: It appears that the file was collected without properly setting the environment variables with VSPerfCLREnv.cmd. Symbols for managed binaries may not resolve.

The odd things are: CPU profiling works with this project and the memory profiling seems to work on other projects (I have created a new WPF project with a empty window and tested the memory profiler there and there was data shown). I have also tested the specific project on another machine with the same result (nothing was shown).

What did I also do: I used the VSPerfCLREnv to set the environment variables as said in the error message above. I have tried the solution of this question: How do I run the Visual Studio 2012 memory profiler? I'm getting the error DA0002, but the part with the VSPerfCmd does not really work (got the message that i should use the VSPerf.exe, but this did not work either).

I think that this is not a problem with the VS2013 in general, but with my project. The mentioned project on which this problem occurs is a WPF application. It includes an asynchronous socket server (based on the SocketAsyncEventArgs).

I cleaned the solution, set debug to x86, removed all unused references of the project and set the target framework from .net4.5 to .net4. Nothing changed. I have no idea why the memory profiling does not work. Maybe the buffers of the sockets are the fault of this (as they are not managed by .net)?

Community
  • 1
  • 1
Rul3r
  • 526
  • 6
  • 14
  • After I updated to VS2013 Update 2 the memory profiling worked once (some data was shown) but after that, the error DA0002 occurred again. – Rul3r Jul 14 '14 at 15:52
  • Now it's more like gambling: Some times memory profiling works, sometimes not. Roughly every fifth attempt leads to a working memory profile. My Solution: I am using now JetBrains dotMemory – Rul3r Jul 14 '14 at 23:18
  • I don't know the answer for your question, but I can warmly recommend you this tool: http://memprofiler.com/ . Unfortunately it's free for about one week of using (not one week from installation). – Wojciech Kulik May 11 '15 at 21:57

1 Answers1

0

It makes me wondering that it is sometimes working. Maybe some Antivirus Software or a driver issue?

Daniel Bişar
  • 2,663
  • 7
  • 32
  • 54