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.
Red Flag Submitted
Thank you for helping keep Tek-Tips Forums free from inappropriate posts. The Tek-Tips staff will check this out and take appropriate action.
Reply To This Thread
Posting in the Tek-Tips forums is a member-only feature.