PROBLEM

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

Last Published: April 25, 2020

Description

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.

Cause

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

Software:
  • 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