[mapserver-users] free() methods

Robert Pivalone robert.pivalone at gmail.com
Fri Apr 24 01:20:58 PDT 2020


 Hello Steve.

Ok. Thanks for your response.

Regards.

Le jeu. 23 avr. 2020 à 15:46, Steve Lime <sdlime at gmail.com> a écrit :

> With SWIG MapScript, the de-allocation of objects happens behind the
> scenes, so as objects go out of scope their resources are free'd IF the
> object is not referenced by another one. --Steve
>
> On Tue, Apr 21, 2020 at 6:05 AM Robert Pivalone <robert.pivalone at gmail.com>
> wrote:
>
>> Hello.
>>
>> In MapServer 6 / 7 + PHP MapScript API, labelObj, layerObj, mapObj,
>> classObj, shapeObj and styleObj have a "free()" method.
>>
>> In MapServer 7.x + SWIG MapScript API, it seems there are no "free()"
>> method. Are they not exposed ? or useless now ?
>>
>> Regards.
>>
>> PS : From the PHP MapScript API documentation : void free() : Free the
>> object properties and break the internal references. Note that you have to
>> unset the php variable to free totally the resources.
>> _______________________________________________
>> mapserver-users mailing list
>> mapserver-users at lists.osgeo.org
>> https://lists.osgeo.org/mailman/listinfo/mapserver-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20200424/ec9bc296/attachment.html>


More information about the mapserver-users mailing list