Slashdot Mirror


Plugging Internet Explorer's Leaks

jgwebber writes "If you're developing DHTML web apps, you probably already know first-hand that Internet Explorer has horrendous memory leak issues. You can't not run on IE, so you've got to find a way to plug those leaks. So I've created a tool to help you find them. So until Microsoft decides to fix its browser architecture (ha!), at least we can keep it from blowing huge amounts of memory."

18 of 480 comments (clear)

  1. Not use IE? by Jawju · · Score: 1, Insightful

    You can't not run on IE...

    Um...I'll think you find I can actually.

    1. Re:Not use IE? by Anonymous Coward · · Score: 1, Insightful

      Um, he's not talking about using a different browser, he's talking about writing a website.

      Now most of the time you want as many people as possible to be able to view your site and as IE (unfortunately, but that's just the way it is) still has the biggest market share by far, writing websites that don't work with IE isn't really an option.

  2. Has anyone used firefox? by MaGGuN · · Score: 5, Insightful

    Everytime I try to download ten things firefox goes up to 300 megs of memory usage and 99% cpu usage. And I took the screenshots to prove it.

    Frankly, I think you can find problems and features you hate in most programs of a certain size, what matters is that you find the tool for the job that you consider the best match for your needs.

  3. Re:Making sites not run on IE by Anonymous Coward · · Score: 1, Insightful

    If it's that easy, then how come that code will block Firefox users too under many circumstances? Not to mention Opera users will get blocked by default.

    For a start, if you are going to send different content based upon the User-Agent header, you need to send a Vary header to indicate you are doing so.

    Short tags are non-portable too, so even your PHP knowledge is crappy.

  4. Re:Making sites not run on IE by kf6auf · · Score: 2, Insightful

    Don't be an @$$. Remember how annoying it was when people said that sites only displayed right in IE 5.5 or "better"? Yeah, you do. Did that get you to use IE? No, it didn't, unless it was your bank or something. So guess what? 90% of people won't go to your non-IE site. Period.

  5. Don't Bother by FellowConspirator · · Score: 4, Insightful

    If you work around a problem, it hides from the user that the problem exists. The demand to have it fixed, therefore, dissipates and developers accept the onus to repeat work-arounds everytime they deploy something. Ultimately, the browser fails to improve, and the costs of errors are passed from the vendor (Microsoft) who never fixes the problem to the public (developers that waste time with work-arounds).

    Anyway, if you write things specifically for IE -- then you've already got a more serious problem that you have to address first. There's no excuse for what you already know to be dismal practice.

  6. Re:Making sites not run on IE by m4dm4n · · Score: 2, Insightful

    If the web designer is willing to go to the effort of excluding +-90% of browsers, the site probably isn't worth viewing anyway.

  7. Worst IE hammering and flamebait article ever by Anonymous Coward · · Score: 4, Insightful
    It seems to me people are now attacking IE now from 3 major angles:

    • Memory and resource usage
    • Rendering and adhering to web standards
    • Security

    IMHO, It's laughable to mock IE for memory leaks when Firefox is X (where X > 1) times worse at sucking up and retaining memory.

    People have relentlessly said the reason IE is faster to load than IE on Win32 is because it is "embedded into the OS" and somehow brushed off this advantage in favour of it's debateable disadvantage in terms of security. What's next? Will slashdotters crying out something along the lines of "WOW! IE, an embedded part of the Windows, has memory leaks! What does that say for the Operating System? You better use Linux!"?

    IE may be guilty of having a buggy implementation of web standards such as CSS2.1 but during the browser wars wasn't it IE producing functionality that hadn't even been drafted by the W3C yet?

    Isn't that "Internet Explorer's architecture made this app fairly easy to build." as testament to the browser?

    This tool is interesing and useful for developers and I thank jgwebber for writing it as I'm sure it'll be useful even to lowly personal developers like me.
    On the other hand i'm a bit baffled as to why this article wasn't simply written as "Hey IE has memory leaks, checkout this new tool by jgwebber and see for youself. Let's discuss how sucky Internet Explorer is and cover up all the flaws in competitor browsers".

    It would have had the same effect as CowboyNeal's unnecessary "(ha!)"'s and claims of IE's "horrendous memory leak issues" without a link giving some evidence for these claims for those of us without first-hand DHTML development experience.

    I truly wasn't aware of any serious IE memory leaks..i'm going to, go off and Google for information now using the cumbersome Firefox. Any links would be much appreciated since CowboyNeal didn't bother.
    1. Re:Worst IE hammering and flamebait article ever by mattOzan · · Score: 3, Insightful
      but during the browser wars wasn't it IE producing functionality that hadn't even been drafted by the W3C yet?

      Yes, and that was the whole damn problem.

      The point of HTML was universal interoperability (so Tim Berners-Lee's collegues could all read each other's stuff no matter what computer setup they had). But Microsoft sacrificed this in order to obtain control and market share. They encouraged web developers to use their proprietary markup, which forced people into using their browser if they wanted to access this content.

      This was not a benevolent gesture from Microsoft- it was nothing but a power-grab. Open, agreed-upon standards are the foundation of interoperability, and Microsoft always stands against this when it thinks it can monopolize a technology.

  8. Re:How about firefox? by zootm · · Score: 2, Insightful

    Just to add on that point, it's probably worth noting that if you follow a pretty strict OO approach, most of the situations where these unchecked references occur become a lot less likely. There's still problems with non-terminating threads and things, people just have to be careful with the logic of their programs, which is a lot less common than I'd like it to be...

  9. Re:Making sites not run on IE by SenseiLeNoir · · Score: 1, Insightful

    When you become an Adult/Married, and havign a decent job, and move out of your mother's basement, then, maybe your views will change.

    --
    Have a nice day!
  10. Re:How about firefox? by Sinus0idal · · Score: 3, Insightful

    Yes but like Java, Javascript surely uses a garbage collection concept meaning it is the browsers responsibility to free memory, and any leaks are thus due to the browser.

  11. Keep on hammering, nobody's listening by toby · · Score: 3, Insightful
    during the browser wars wasn't it IE producing functionality that hadn't even been drafted by the W3C yet?

    You say that like it's a good thing(!)

    "Internet Explorer's architecture made this app fairly easy to build." as testament to the browser?

    No; for some pretty obvious reasons: one obvious one being, you exclude anyone not using that particular browser. I thought everyone realised that was a Bad Thing - or maybe you haven't been one of those people who can't use their online bank because the bank decided to arbitrarily depend on IE. One can only hope that accessibility laws will put an end to such stupidities.

    It's not surprising that both browser products have memory leaks. However one could reflect deeply on the differences in responsibility and approaches to remediation. In Firefox's case - being open source - you have complete transparency; you can file a bug on it, check the bug db, or even fix it yourself (don't laugh). In M$'s case, all you can do is kiss your money goodbye and hope they fix it "one day".

    The same goes for all the rest of their system, too. It is not always obvious what a disturbing abdication of rights using a closed system is. A friend recently told me of a Visual $tudio crash triggered by a few \b backspace characters in a print statement. Not such a big deal, I thought at the time; but I found myself reflecting on his story later. Eventually the true horror of the situation sank in, which is that we have to completely trust the ability and goodwill of the vendor to deal with any and all issues in their O/S. That is no small responsibility and there is not much evidence that M$ is capable of fulfilling their end of the bargain. I would postulate, after RMS of course, that no closed and proprietary system on the scale of M$ products can be adequately maintained by one vendor. And of course maintenance becomes irrelevant when major "rewrites" are involved, such as have been prescribed by Longhr0n to fix W1ndows' fundamental ills (ref Spolsky on rewrites, Things You Should Never Do).

    The thought that one has no recourse and indeed not even any way to inspect the system one uses (livelihood, etc), is deeply, deeply disturbing, and I again have to thank RMS for pointing out long ago what a dead-end that is, and for putting in place viable alternatives.

    --
    you had me at #!
  12. Re:First, is it a problem? by Anonymous Coward · · Score: 1, Insightful

    and have you reported it to the Firefox design team?

    Have you seen how many open bug reports are in Bugzilla?

    Sure he should report it, but when there's "NEW"/"CONFIRMED" memory leak bugs from 5 years ago that are going unfixed, I wouldn't put too much work into it.

  13. Re:Memory leaks are no longer excusable by joshdick · · Score: 2, Insightful
    Nowadays the state of the art has moved on and there is no excuse, none at all, for malloc/free.

    You've obviously never done any embedded programming.

    The low-level capabilities of C/C++ are there by design. That's why it contains the keywords union and register, for example.

    What's more, if everyone jumps on the virtual machine and garbage collection bandwagons, new problems pop up. Abstractions and convienences inevitably foul up, and often lead to poor programs overall.

    The onus for performance should rest with application developers, not compiler developers. Thus, the solution here is for developers to be properly trained and then to take responsibility for such matters as memory leaks. It looks to me that that's exactly what the Firefox team intends to do.

  14. Re:RTFA by shumacher · · Score: 3, Insightful

    While I don't think MSIE is inherently evil, I think I could argue that a browser that allows web pages (a resource that should not be trusted) to cause memory leaks is itself flawed. Part of the browser's job is to not expose the user to risk or instability while interpreting documents of unknown maliciousness and quality.

  15. Watch me by ArmorFiend · · Score: 1, Insightful
    You can't not run on IE

    Oh yes I can. When I do for-fun sites, and I need some feature like translucent PNGs, that I feel MS hasn't made a good faith effort to support, I drop IE compatiblity and put an add for Firefox on the page.

    Until many people start doing this, then suckers won't switch. And suckers are the bulk of the internet.

  16. Re:Not on the to-do list by RzUpAnmsCwrds · · Score: 2, Insightful

    "Second, you add some new features. Like stealing compression code from Stacker, MS will just steal one of the "Tabbed browsing in IE" Plugins and muck the variable names up a bit."

    Come on. That's a cheap shot. There is no indication that Microsoft stole any code whatsoever for IE7.

    Ever wonder why Slashdot gets the reputation of being a bunch of crazy coots? Yep, it's people like you lobbing unfounded allegations against Microsoft.

    There are plenty of valid reasons to attack Microsoft. You don't need to make shit up.