Resources aren’t garbage

Regarding Microsoft’s .NET OdbcConnection Class: You should always explicitly close any open OdbcConnection objects by calling Close or Dispose before the OdbcConnection object goes out of scope, or by placing the connection within a Using statement. Not doing this leaves the freeing of these native resources to garbage collection. It might not free them immediately.… Continue reading Resources aren’t garbage

Published
Categorized as Software