Memory leak in .Net

I want to know if there really is a memory leak. My Scenaio looks like:

  • My.Net application takes up x memory capacity.
  • I opened some dialogs and now it takes x + y amount of memory
  • Closed all recently opened dialogs.
  • fixed memory is around x + Y

This is a memory leak or it could be a situation where the garbage collector has not cleared the memory.

And how events are also considered as links. What if an event is present in a dereferenced object? then this event will not be considered a link, right?

+5
source share
5 answers

The garbage collector only frees objects that are no longer referenced.

, .

, . , . ( , )

+10

- , , , Generation 0, . , . .

GC.Collect() ( , ), GC .

, Collector, .

, , - .

, , RedGates Memory Profiler, .
walk-through, , .

+2

How to use a memory profiling tool like JetBrains dotTrace to profile memory usage in your application?

0
source

This may be a situation where the garbage collector did not clear the memory.

-1
source

All Articles