Unhandled .NET exception in memory profiler

ctct Posts: 5
edited August 15, 2014 11:20AM in ANTS Memory Profiler 8
The .NET memory profiler version 8.2 crashed while profiling with an unhandled .NET exception (but the profiled process did not crash).

Now, trying to start the profiler against the same process id reports "ANTS Memory Profiler couldn't attach to the process you selected, because another profiler is already attached to this process".

How can I clear that "flag"?

Comments

  • Jessica RJessica R Posts: 1,319 Rose Gold 4
    Hello,

    Thanks for your post!

    ANTS needs to set the COR_PROFILER and COR_ENABLE_PROFILING environment variables to profile your application. To clear these leftover variables from the session that ended badly, could you kindly open your registry (regedit) and search for any COR_ENABLE_PROFILING=1 and COR_PROFILER={a GUID} key pairs? Please delete them, restart your application, and you should be able to profile again. Please let us know should any issues persist!

    Thanks,

    Jessica Ramos | Product Support Engineer | Redgate Software

    Have you visited our Help Center?


  • Thanks - I have not tried it, but I will the next time the app fails.
  • Jessica RJessica R Posts: 1,319 Rose Gold 4
    No worries, please let us know if any issues persist!

    Jessica Ramos | Product Support Engineer | Redgate Software

    Have you visited our Help Center?


Sign In or Register to comment.