VBA may crash after using ADO parameter objects to pass a geometry envelope to a data source


A stand alone Visual Basic application may crash when a spatially filtered recordset is returned to the client, after a geometry envelope was passed to the data source as an ADO parameter.


The geometry object is not being freed correctly, the ADO Command parameter may be releasing it twice.

Solution or Workaround

Pass the necessary parameters into an ADO Command::Execute method directly.

Article ID:000002740

  • ArcMap 8 x

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options

Discover more on this topic