English

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

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.