An SDF Orphaned Read May Cause an Access Violation Error IF ReadNext Is Called

FDO SDK

 
An SDF Orphaned Read May Cause an Access Violation Error IF ReadNext Is Called
 
 
 

If the connection is closed while a reader is still active, a call to ReadNext may access freed memory causing an access violation (that is, a system crash).

Solution: Before closing a connection, ensure that the reader object has been destroyed.