[gdal-dev] GDAL/OGR C API, how should I be dealing with 'handles'

jramm jamessramm at gmail.com
Mon Jun 8 04:07:53 PDT 2015


Many C API functions return a typedef which is referred to as a handle. E.g.

OGRFeatureHOGRLayerHOGRGeometryH
These seem to occur when the C++ api returns a pointer.I have 3 questions:
Why doesnt the C API return pointers? 
How should I pass these 'handles' around. Should I create pointers to them?
Do I need to free them?




--
View this message in context: http://osgeo-org.1560.x6.nabble.com/GDAL-OGR-C-API-how-should-I-be-dealing-with-handles-tp5209726.html
Sent from the GDAL - Dev mailing list archive at Nabble.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20150608/5de0bcf4/attachment.html>


More information about the gdal-dev mailing list