[fdo-users] SDF spatial index error

Steve Stanton sstanton at btinternet.com
Wed Feb 9 18:40:45 EST 2011


I found the culprit. The IInsert.Execute call returns an IFeatureReader that has to be disposed. My original code was like this:

  using (IInsert cmd = ...
  {
      ...
      cmd.Execute();
  }

I changed it to:

  using (IInsert cmd = ...
  {
      ...
      IFeatureReader reader = cmd.Execute();
      reader.Dispose();
  }


Steve


More information about the fdo-users mailing list