ADO recordset access violation problem
Posted on 2001-09-11
I have a COM object that writes an ADO recordset which is available as a property of the com object. IE
This object is used in an VB program which seems to run fine except when the application ends. I get an access violation error at 0x00000005 that is found in the debug to be in the com object.
In fact I have been able to determine the problem is related specifically to when the object goes out of scope either by application termination or if the object is used in a procedure and the function goes out of scope.
Is there a particular set of code that needs to be executed to allow a recordset to be created and then the object destructed that I am not aware of?