Actually I do get your point. But, it doesn't help as finalize is only called when the object is being garbage collected. My problem, unfortunately, is with the objects that are not being garbage...
Type: Posts; User: PhilTroy
Actually I do get your point. But, it doesn't help as finalize is only called when the object is being garbage collected. My problem, unfortunately, is with the objects that are not being garbage...
Actually, when you call the garbage collector, it is just a request to do garbage collection; it does not actually have to do it then. Likewise, if you haven't properly gotten rid of all references...
Actually, if you look carefully at the documentation, finalize is called by the garbage collection right before an object is garbage collected; I am pretty sure that the documentation says explicitly...
Hi!
I am building a simulation engine that creates and uses a couple hundred thousand objects per simulation trial, many of which are only used for a small amount of time. Not unexpectedly, I am...