best practice for breaking references in C# -


i wondering how can break reference instance if can't put null (because program won't work), can't use dispose: (if object!=null) {object.dispose();}, , don't know , how reinitialize object (it should reinit variables also).

also, can find .net memory profiler issue advisor tells how resolve found issues might indicate memory leaks?

e.g. :

 direct eventhandler roots (show details) (ignore...)  disposed instances (show details) (ignore...)  pinned instances (show details) (ignore...)  undisposed instances (remove external references) (show details) (ignore...)  large instances (show details) (ignore...)  duplicate instances (show details) (ignore...)  direct delegate roots (show details) (ignore...) 

and on


Popular posts from this blog

How to calculate SNR of signals in MATLAB? -

c# - Attempting to upload to FTP: System.Net.WebException: System error -

ios - UISlider customization: how to properly add shadow to custom knob image -