[FWTools] OGRFeature memory problem?
Mateusz Łoskot
mateusz at loskot.net
Mon May 15 10:29:26 EDT 2006
Mike Toothaker wrote:
>>
>> Thank you very much for the quick response. Using:
>>
>> OGRFeature::DestroyFeature( poFeature );
>>
>> Unfortunately gives the same result.
Hi,
Could you try to change your code as follows:
1) OGRPoint *poPoint = new OGRPoint();
Simply, put this point on the stack:
OGRPoint pt;
2) Change
oFeature->SetGeometryDirectly( poPoint );
to read:
oFeature->SetGeometry( &pt );
Is it working now?
Cheers
--
Mateusz Łoskot
http://mateusz.loskot.net
More information about the FWTools
mailing list