<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;"><BLOCKQUOTE style="BORDER-LEFT: rgb(16,16,255) 2px solid; PADDING-LEFT: 5px; MARGIN-LEFT: 5px"><BR>
<DIV id=yiv355960932>
<TABLE border=0 cellSpacing=0 cellPadding=0>
<TBODY>
<TR>
<TD vAlign=top>
<DIV>Hi Everyone,</DIV>
<DIV> I'm using mapscript.jar in Java project.When I use the DrawMap.java examples in my Java Application,the Memory will not increase,the codes is below:</DIV>
<DIV> for (i=0; i<1000; i++) {</DIV>
<DIV> mapObj map = new mapObj("mymapfile.map");<BR><BR> imageObj img = map.draw();</DIV>
<DIV> img.delete();<BR> map.delete();<BR> }<BR> but When I use the code in my servlet project,the memory will increase very fast the code is below:</DIV>
<DIV> mapObj map = new mapObj("mymapfile.map");<BR><BR> imageObj img = map.draw();</DIV>
<DIV> img.img.getBytes();</DIV>
<DIV> img.delete();<BR> map.delete();</DIV>
<DIV> </DIV>
<DIV>can anyone tell me how to solve the problem?thank you very much!<BR></DIV></TD></TR></TBODY></TABLE></DIV></BLOCKQUOTE></td></tr></table>