<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-2">
<META content="MSHTML 6.00.6000.16544" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV>
<DIV><FONT face=Arial size=2>Hi,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Somewhere in my code I have a function that is 
supposed to destroy and re-create a Text layer to display up-to-date 
information:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>function refresh_markers() 
{<BR>&nbsp;map.removeLayer(markers);<BR>&nbsp;markers.destroy();<BR>&nbsp;markers 
= new OpenLayers.Layer.Text( "Test layer", {location: "maps/aircraft.csv?" 
+<BR>&nbsp;&nbsp;&nbsp; new Date().getTime() } 
);<BR>&nbsp;map.addLayer(markers);<BR>}<BR></FONT></DIV>
<DIV><FONT face=Arial size=2>This appears to leak memory - every time the layer 
is refreshed, by Explorer memory consumption grows by 5MB.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>What is the right way to refresh a text 
layer?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>regards,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Michal Rok</FONT></DIV>
<DIV><FONT face=Arial size=2>&nbsp;</DIV></FONT></DIV></BODY></HTML>