private static void Main(string[] args) { _raiser = new EventRaiser(); for (var i = 0; i < 1000; i++) { CreateLeak(); } Console.WriteLine("Press any key to continue..."); Console.ReadKey(true); }
public MemoryLeak(EventRaiser raiser) { this._raiser = raiser; _allocatedMemory = new byte[10000]; raiser.StringValueChanged += raiser_StringValueChanged; }