[Mapserver-users] mapObj clone() method problem

Alexandros Chimarios alhim@intracom.gr
Tue, 20 Apr 2004 15:56:55 +0300


Hi all, 

I have a problem using Python Mapscript. In particular when i invoke 
mapObj.clone() method i got a segmentation fault. This is my source code :

mo = mapObj('/usr/local/apache2/cgi-bin/geodata/world.map')
mo_clone = mo.clone()

However, when I created a subclass of mapObj, then the clone method run 
normally. But i have noticed that the clone method runs ok for 2 times. if I 
try to invoke it the 3rd time i get an segmenation fault again. For example :

y = mo;
for i in [1,2,3,4,5,6,7,8,9,10]:
   
    c = y.clone()
    
    print i;

It prints :

1
2
Segmentation fault


Could anyone explain me why's this happenning ?

p.s : I use Python 2.2 on RedHat Linux 9 with kernel 2.4.20
_______________________________________________
Mapserver-users mailing list
Mapserver-users@lists.gis.umn.edu
http://lists.gis.umn.edu/mailman/listinfo/mapserver-users