Hi List,<br><br>I&#39;m developing an application using the QGIS API. <br><br>At this point, I need to replicate the QGIS functionality for merging features in a given layer. I copied some parts of the code from qgisapp.cpp, but I have some problems.<br>
<br>In short, I receive an abort from the compiler when the method exits at the point that the QList destructor is called.<br><br>Do I have to take special considerations calling this method?<br><br><br>The relevant code is:<br>
<br>    QgsFeatureList featureList = this-&gt;currentLayer-&gt;selectedFeatures();  //get QList&lt;QgsFeature&gt;<br><br>Where this-&gt;currentLayer is a QgsVectorLayer.<br><br>Thanks.<br><br>--<br>federico<br>