Ticket #381 (closed defect: invalid)
"Memory allocation failed" error message when applying spatial filter to a sdf dataset
|Reported by:||jng||Owned by:||gregboone|
Using the .net managed wrappers (FDO 3.3.1)
If you apply a filter to an ISelect from an SDF connection, if that filter has a spatial condition. You will get "Memory allocation failed" message at IFeatureReader::ReadNext?() even if you do not touch the actual geometry property of the returned feature reader (eg. Looping the feature reader and doing nothing).
For small sdf datasets, this doesn't happen. But once you go to something like the Sheboygan sample dataset (~17000 features), then it starts to occur.
The "Memory allocation failed" message is thrown from Fdo\Unmanaged\Src\Geometry\Fgf\GeometryFactory?.cpp:779
I have attached the following files:
- Sheboygan_Parcels_MultiKey.zip: The sheboygan parcel dataset in sdf format. - Program.zip: Contains C# code to illustrate the problem.
I'm guessing the SDF feature reader is creating geometries to compare against the filter, but the geometries aren't being released afterwards?