<div>My application uses OGR to edit ESRI Shapefiles. </div>
<div> </div>
<div>If I follow this steps: </div>
<div> </div>
<div>1_ Create a feature(OGRFeature::CreateFeature) using the feature definition from an existing layer(layerA)</div>
<div>2_ Add a field (OGRLayer::CreateField) to layerA </div>
<div>3_ Try to save the feature (OGRLayer::SetFeature) in layerA</div>
<div> </div>
<div>I receive a SIGSEGV from function OGRFeature::SetField. I believe this happens because I modify the layer definition in step 2 leaving the feature definition out of date. </div>
<div> </div>
<div>I&#39;d like to know if there is any way to check if the feature is valid before calling SetFeature. </div>
<div> </div>
<div>Thanks </div>
<div>Ramiro  </div>
<div> </div>
<div> </div>