<br><font size=2 face="sans-serif">hi &nbsp;frank</font>
<br>
<br><font size=2 face="sans-serif">i did it -&gt; bug 1403</font>
<br>
<br><font size=2 face="sans-serif">bye</font>
<br><font size=2 face="sans-serif">benedikt</font>
<br>
<br><font size=2><tt>Frank Warmerdam &lt;fwarmerdam@gmail.com&gt; schrieb
am 29.06.2005 16:16:16:<br>
<br>
&gt; On 6/29/05, Benedikt Rothe &lt;umn-ms@hydrotec.de&gt; wrote:<br>
&gt; &gt; &nbsp;<br>
&gt; &gt; Dear List <br>
&gt; &gt; &nbsp;<br>
&gt; &gt; We are using MapScript/Tomcat/Java/OracleSpatial. <br>
&gt; &gt; &nbsp;<br>
&gt; &gt; We use mapObj.mapClone() to get a fresh mapObject <br>
&gt; &gt; in each request without reading the Mapfile. <br>
&gt; &gt; &nbsp;<br>
&gt; &gt; We detected problems after we activated Connection-Pooling: <br>
&gt; &gt; Tomcat crashed in mapObj.delete() <br>
&gt; &gt; &nbsp;<br>
&gt; &gt; Hole thing turned out to be a bug in mapcopy.c where <br>
&gt; &gt; the joins are copied: <br>
&gt; &gt; -------------------- <br>
&gt; &gt; MS_COPYSTELEM(numjoins); <br>
&gt; &gt; &nbsp;<br>
&gt; &gt; for (i = 0; i &lt; dst-&gt;numprocessing; i++) { <br>
&gt; &gt; &nbsp; &nbsp;return_value = msCopyJoin(&amp;(dst-&gt;joins[i]),
&amp;(src-&gt;joins[i])); <br>
&gt; &gt; -------------------- <br>
&gt; &gt; &nbsp;<br>
&gt; &gt; This must be changed to <br>
&gt; &gt; -------------------- <br>
&gt; &gt; MS_COPYSTELEM(numjoins); <br>
&gt; &gt; &nbsp;<br>
&gt; &gt; for (i = 0; i &lt; dst-&gt;numjoins; i++) { <br>
&gt; &gt; &nbsp; &nbsp;return_value = msCopyJoin(&amp;(dst-&gt;joins[i]),
&amp;(src-&gt;joins[i])); <br>
&gt; &gt; -------------------- <br>
&gt; &gt; &nbsp;<br>
&gt; &gt; There is some other code in mapobject.c, wich didn't <br>
&gt; &gt; raise any problems for us, but from wich I do think <br>
&gt; &gt; that array-allocs are missing. <br>
&gt; &gt; I watched the code an *think* these are are not allocated <br>
&gt; &gt; anywhere. I hope, there is no misleading hint: <br>
&gt; <br>
&gt; Benedikt, <br>
&gt; <br>
&gt; I would encourage you to submit this via bugzilla, <br>
&gt; and ensure it gets assigned to Sean Gilles who<br>
&gt; takes care of map cloning problems. <br>
&gt; <br>
&gt; The cloning is a bit prone to bugs, but we want to fix it<br>
&gt; up. <br>
&gt; <br>
&gt; Best regards,<br>
&gt; -- <br>
&gt; ---------------------------------------+--------------------------------------<br>
&gt; I set the clouds in motion - turn up &nbsp; | Frank Warmerdam, warmerdam@pobox.com<br>
&gt; light and sound - activate the windows | http://pobox.com/~warmerdam<br>
&gt; and watch the world go round - Rush &nbsp; &nbsp;| Geospatial Programmer
for Rent<br>
</tt></font>