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? -

java - How to create Table using Apache PDFBox -

mpi - Why is MPI_Bsend not returning error even when the buffer is insufficient to accommodate all the messages -