[OpenLayers-Users] Need help with memory leak in IE

Hendrik Nibbrig Hendrik.Nibbrig at enovation-btc.de
Thu Sep 3 03:43:25 EDT 2009


 
Hi,

My name is Hendrik and I'm currently evaluating OSM with OpenLayers to see if this is the way to go for our company. I have been developing in C++ and Java for the last 5 years to please go easy on me with Javascript as this is new to me. 

Our application will be displaying a list of vehicles on one side of the screen and then the user can pick one. We will then show the route of the vehicle on the map (e.g. using markers) along with a heap of other information. The Javascript will do a refresh every minute and so the map will be updated every minute as well. The user is free to switch to another vehicle at any time so I need to delete all current markers and then insert the new ones.

The current map system (by Infoware) has lots of issues which is why we want to change to OSM and OpenLayers. Therefore I made a little showcase where I can run some tests. The tests have showed that everything is fine using Firefox but in IE the memory steadily increases. IE7 is tolerable, but IE8 will be unbearable. 
I attached the showcase so you can have a look at the sourcecode. The data is anonym so don't worry about that. The best test to run is "Show whole trip every 5 seconds". This will insert 500 markers every 5 seconds and it will clear the existing markers before. As you can see in the showcase I tried using a vector as well but that wasn't any better. I'm open to any suggestions or even better solutions :)  

Oh btw: Except for the memory problem (which might be an issue of IE itself) I think OpenLayers is a great tool and on the right way.

Sorry if this gets double posted, but the first post was too large and I couldn't cancel it.

Kind regards/Mit freundlichen Grüßen

Hendrik Nibbrig
Systemanalytiker Java




T +49. 3375. 528 30 204

F +49. 3375. 528 30 19

hendrik.nibbrig at enovation-btc.de  ·  www.enovation-btc.de 

 

E.Novation BTC GmbH   

Freiheitstraße 120 B  ·  15745 Wildau

Managing Director: Walther Bernard
Registered Court: Amtsgericht Potsdam HRB 12345



This E-Mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this E-Mail in error) please notify the sender immediately and destroy this email. Any unauthorized copying, disclosure or distribution of the material in this email is strictly forbidden.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenLayers.zip
Type: application/x-zip-compressed
Size: 9405 bytes
Desc: OpenLayers.zip
Url : http://lists.osgeo.org/pipermail/openlayers-users/attachments/20090903/9cd3f453/OpenLayers.bin


More information about the Users mailing list