c# - Can I force collection for objects of certain type only? -


i have a problem rcws not being timely collected. think of periodically force-starting garbage collection inside code. i'm not sure if have undesired slowdown.

i'm not interested in collecting objects, need rcws collected , have system.__comobject type. guess collecting them faster.

is possible force garbage collection objects of type only?

no, it's not possible, can force garbage collector run can not force work according logic.

for more information on garbage collector please read this: https://msdn.microsoft.com/en-us/library/ee787088(v=vs.110).aspx

also gc static class, can't override of it's method :(


Comments

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -