Re: [mapserver-users] free() methods

2020-04-24 Thread Robert Pivalone
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.

Re: [mapserver-users] free() methods

2020-04-23 Thread Steve Lime
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

[mapserver-users] free() methods

2020-04-21 Thread Robert Pivalone
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

Re: [mapserver-users] free() methods in MapScript, compatibility MS 5.x and 6

2011-04-29 Thread Alan Boudreault
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

Re: [mapserver-users] free() methods in MapScript, compatibility MS 5.x and 6

2011-04-29 Thread Armin Burger
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

Re: [mapserver-users] free() methods in MapScript, compatibility MS 5.x and 6

2011-04-29 Thread Alan Boudreault
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

[mapserver-users] free() methods in MapScript, compatibility MS 5.x and 6

2011-04-27 Thread Armin Burger
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