TheVampire
Programmer
I've got a VB.NET app that is leaking file handles despite me disposing of the OdbcConnection and OdbcCommand objects correctly. Eventually these file handles proliferate to the point of causing errors due to low system resources. I need to find out how to use the API to locate all file handles in use by my process, and shut down any that match a certain description (which is the path to the folder where the database is located). This has to be done automatically from within my program and not using any external utility. Any suggestions are appreciated.