I would like to write the following code in C #. a) a small console application that simulates a memory leak. b) a small console application that will reference the above application and immediately release it, simulating a memory leak problem.
In other words, application (b) constantly called and freed application (a) to mimic how the βrebelβ application of a memory leak application is contained without addressing the root cause, which is application (a).
Some sample code for applications (a) and (b) will be very useful.
thanks
c # memory memory-leaks
dotnet practitioner
source share