Creating a memory leak with Java
So, a question: is it better or worse that the usage of GCs has changed the mindset of developers to stop worrying about allocation&#x2F;freeing of resources ?<p>Given that developers still need to worry about freeing&#x2F;releasing native resources, I think it might have inadvertently created a false sense of security and, in the process, resulted in developers that don&#x27;t even possess this type of thinking anymore.  We ran into this with the .NET Data Provider for one of our database engines.  A good portion of .NET developers that used it were surprised to find out that they needed to call the Dispose method on certain database objects in order to free&#x2F;release their native handles&#x2F;resources.  This was followed by a period of confusion about what to dispose of, and what not to dispose of (like this: <a href="http:&#x2F;&#x2F;stackoverflow.com&#x2F;questions&#x2F;2024021&#x2F;does-the-dispose-method-do-anything-at-all" rel="nofollow">http:&#x2F;&#x2F;stackoverflow.com&#x2F;questions&#x2F;2024021&#x2F;does-the-dispose-...</a>).