What are the challenges you face when working across database platforms? Take the survey

how does MemoryProfiler accomplish it?

ChristianChristian Posts: 3
edited December 17, 2013 4:13AM in ANTS Memory Profiler 8

our application is allocating objects which are stored in strong and weak references. we need to so some cleanup when objects are destroyed. after all strong references are released, objects still stays in memory (-> bad).
calling GC.Collect() does not help
when I use MemoryProfiler and press 'Take memory snapshot' the objects are destroyed immediately

we don't want to make these objects disposable

Is there something special what MemoryProfiler does to accomplish objects are destroyed (what we are not able to)?



  • Options
    I have it on extremely good authority that the snapshot does:


    and then gathers all the data.

    I cannot account for why this doesn't have the same effect with your code. If we (support@red-gate.com) can get hold of the same code, we will be able to comment further.
  • Options

    thanks for your feedback and the insight. this is something we tried already, but didn't work.

    providing you with the code or a code sample is unfortunately not possible.
Sign In or Register to comment.