Microsoft Windows Vista Community Forums - Vistaheads
Recommended Download



Welcome to the Microsoft Windows Vista Community Forums - Vistaheads, YOUR Largest Resource for Windows Vista related information.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so , join our community today!

If you have any problems with the registration process or your account login, please contact us.

Driver Scanner

IE8 Leaks Memory When Images are Resized

microsoft.public.internetexplorer.general






Speedup My PC
Reply
  #1 (permalink)  
Old 04-29-2009
joshnaro
 

Posts: n/a
IE8 Leaks Memory When Images are Resized
I ran a simple experiment that works as follows:
1. Load a large image into the body element on window load.
2. Add a click handler to the body that removes the image element and adds
another with a reference to a different large image.

Clicking through 10 images in this scenario works fine. However, if the
image is resized (css or otherwise), IE8 leaks memory on every click. I used
sIEve for my memory watching.

----------------
This post is a suggestion for Microsoft, and Microsoft responds to the
suggestions with the most votes. To vote for this suggestion, click the "I
Agree" button in the message pane. If you do not see the button, follow this
link to open the suggestion in the Microsoft Web-based Newsreader and then
click "I Agree" in the message pane.

http://www.microsoft.com/communities...orer. general
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 04-29-2009
Kai Schaetzl
 

Posts: n/a
Re: IE8 Leaks Memory When Images are Resized
Joshnaro schrieb am Wed, 29 Apr 2009 08:31:01 -0700:

> I ran a simple experiment that works as follows:
> 1. Load a large image into the body element on window load.
> 2. Add a click handler to the body that removes the image element and adds
> another with a reference to a different large image.
>
> Clicking through 10 images in this scenario works fine. However, if the
> image is resized (css or otherwise), IE8 leaks memory on every click. I used
> sIEve for my memory watching.


It would be helpful if you would provide a validated, sample URL where this can
be reproduced.

Kai
--
Helpsites about Windows: http://www.mvps.org
IE repair script: http://iefaq.info

Reply With Quote
  #3 (permalink)  
Old 04-29-2009
joshnaro
 

Posts: n/a
Re: IE8 Leaks Memory When Images are Resized
Place the test code below (if it survives the post) in an .html file
alongside a list of large images named "TestImage0.jpg",
"TestImage1.jpg",..."TestImage9.jpg". The page will leak memory (I used sIEve
for testing) on every click of the page. If the resize css is removed, the
page will not leak.
Test Code

<html>
<head>
<title>Memory Leak Testing</title>

<script type="text/javascript">

var count = 0;

window.onload =
function() {
AppendImage();
window.document.body.onclick = ReplaceImage;
}

var ReplaceImage = function() {

window.document.body.removeChild(document.getEleme ntById('MemTestObject' +
count));
count++;
if (count > 9) {
alert('No more images to load.');
} else {
AppendImage();
}
}

var AppendImage = function() {
var imageObject = document.createElement('img');
imageObject.id = 'MemTestObject' + count;
imageObject.className = 'MemTestObject';
imageObject.src = 'TestImage' + count + '.jpg';
window.document.body.appendChild(imageObject);
}

</script>

<style type="text/css">
.MemTestObject {
width: 140px;
height: 178px;
}
</style>
</head>
<body>
<h1>Memory Leak Testing</h1>
</body>
</html>



"Kai Schaetzl" wrote:

> Joshnaro schrieb am Wed, 29 Apr 2009 08:31:01 -0700:
>
> > I ran a simple experiment that works as follows:
> > 1. Load a large image into the body element on window load.
> > 2. Add a click handler to the body that removes the image element and adds
> > another with a reference to a different large image.
> >
> > Clicking through 10 images in this scenario works fine. However, if the
> > image is resized (css or otherwise), IE8 leaks memory on every click. I used
> > sIEve for my memory watching.

>
> It would be helpful if you would provide a validated, sample URL where this can
> be reproduced.
>
> Kai
> --
> Helpsites about Windows: http://www.mvps.org
> IE repair script: http://iefaq.info
>
>

Reply With Quote
  #4 (permalink)  
Old 04-29-2009
Kai Schaetzl
 

Posts: n/a
Re: IE8 Leaks Memory When Images are Resized
Joshnaro schrieb am Wed, 29 Apr 2009 10:33:01 -0700:

> <html>


This won't validate. Please validate first at validator.w3.org.
And honestly, I'm not going to bother about the images and recreate your
scenario with images of my own. 1. I don't have time for that extra stuff,
2. your problem may be attached specifically to the images you tried it
with.

So, again: It would be helpful if you would provide a validated, sample
URL where this can be reproduced.

Thanks.

Kai
--
Helpsites about Windows: http://www.mvps.org
IE repair script: http://iefaq.info

Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
retrieve deleted images from Kodak internal memory hungerunty microsoft.public.windows.vista.general 5 09-26-2008 16:30
Memory leaks? רועי microsoft.public.windows.vista.performance maintenance 7 12-29-2007 04:35
Firefox Working to Fix Memory Leaks Steve General Technology News 0 09-24-2007 18:10
Help Find Memory Leaks in Firefox BlogFeed Windows Vista Blogs Forum 0 09-22-2007 23:51
No delete image option for images on memory card =?Utf-8?B?Y2hyaXMubWNjcmVlcnk=?= microsoft.public.windows.vista.music pictures video 0 12-08-2006 17:30




All times are GMT +1. The time now is 20:44.




Driver Scanner - Free Scan Now

Vistaheads.com is part of the Heads Network. See also XPHeads.com , Win7Heads.com and Win8Heads.com.


Design by Vjacheslav Trushkin for phpBBStyles.com.
Powered by vBulletin® Version 3.6.7
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.6.0 RC 2

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120