Icon Frequently Asked Questions

When running an ASP.NET application that uses the DBISAM ODBC Driver, an application fault referring to the IDispenserDriver::DestroyResource method occurs after a few operations using the driver. What could be causing this ?

Since the ODBC.NET data provider is accessing and using unmanaged resources and handles in the ODBC driver during operation, you should always call the Dispose method for any ODBCConnection, ODBCCommand, ODBCCommandBuilder, or ODBCDataAdapter objects when you are done using them (deterministic destruction). Failure to do so can cause major failures in the driver due to the resources and handles being freed up re-entrantly when the .NET garbage collector thread finalizes these objects.
Image