Hello Steve.
Ok. Thanks for your response.
Regards.
Le jeu. 23 avr. 2020 à 15:46, Steve Lime 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.
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
wrote:
> Hello.
>
> In MapServer 6 / 7 + PHP MapScript
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
Hi Armin,
Although I'm not sure if the free call was useful... since it was only
removing the php object from a global list but the object was not really freed
until the end of the script... I would suggest to simply add a such condition
if ms_version 6 ... obj-free() rather than removing
Alan
I used a script creating 3 different type of objects without applying
the free method, put it in a loop with 1M cycles and opened it in a
browser. Checking the memory usage of the Apache process while running
the script showed no increase of memory at all. So I would guess the
free() is
That's what I thought. Thanks for testing.
Alan
On April 29, 2011 01:40:42 pm Armin Burger wrote:
Alan
I used a script creating 3 different type of objects without applying
the free method, put it in a loop with 1M cycles and opened it in a
browser. Checking the memory usage of the Apache
Hi everybody
in MapServer/MapScript 6 the various class methods free() have been
removed. If I want to have PHP/MapScript code compatible with both
MapServer 5.x and 6, the easiest would be to completely remove these
method calls from the code.
My question is just if these free() methods