for your own classes, if they do not use resources other than memory, you do not need to provide a function dispose()as for the OleDbDataAdapter,OleDbConnection, you should call OleDbDataAdapter.Dispose() or OleDbConnection.Close()