Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

IE crashes on website on mshtml.dll

Status
Not open for further replies.

jwhite68

IS-IT--Management
Jun 14, 2007
77
BG
I have a situation where repeating certain actions on my website causes IE to crash.

Despite reporting the problem to Microsoft and having a Microsoft research engineer investigate, they say its not an IE issue and has to be an issue with the code.

Basically when I click a picture link, which navigates to another page, it crashes IE with an error in mshtml.dll.
The error doesnt always occur at the same time, and may require 2 or 3 attempts. And sometimes the error can occur when I click on logout, or click a hyperlink - but each time it does occur, its on a button/link that navigates to another page.

The problem does not occur in Firefox at all.


Does anyone have any advice, or has faced similar issues?
 
There are issues with IE (certainly IE 6, I've not tried IE 7) that I've found where the HTML and CSS on a page will cause IE to crash (I won't post the code here for obvious reasons).

If you strip all CSS from the offending page(s), does the crash still occur? If not, build it back up a bit at a time until you find the offending line (mine happened to involve floating elements), and see if you can find another way of coding that rule.

Incidentally, I sent the code to MS, but they said that because they couldn't find a way to exploit the crash, they would not fix it. What a poor excuse from a company like that. I guess they really don't give a monkeys about good user experience.

Hope this helps,
Dan



Coedit Limited - Delivering standards compliant, accessible web solutions

[tt]Dan's Page [blue]@[/blue] Code Couch
[/tt]
 
Thanks for the advice.

At this stage, having stripped down the code, I think the problem is with csshover.htc - a piece of code that was written by someone else. I see several reported issue when I google csshover. If I comment that out, it doesnt crash - although the use of csshover is needed by my application - so I need to get to the bottom of this.
 
csshover.htc, usually used with popup menu navigation was replaced by a superior technique described in the suckerfish dropdowns example.

___________________________________________________________
[small]Do something about world cancer today: PACT[/small]
 
I was able to locate the offending piece of code.

For some reason, the code had a segment that was no longer being used, and was referencing a file that wasnt in the source directory [possibly was used in the early stages of development, and left in].

I am going to show the code, as it may be that someone else uses this - since it relates to previous use of the sweetTitles.css.

Code:
<style type="text/css" media="screen,projection">
<!--
	@import "css/sweetTitles.css";
-->
</style>

Believe it or not, simply removing this segment of code, solved the problem!

It was consistently crashing with this code in place.
So, even though the file doesnt physically exist, this causes Internet Explorer to crash, intermitently.
Worth knowing if you use css, and find yourself having IE crash, and you cant figure out why.

It took me 2 days to sort this out. Microsoft couldnt even suggest anything after 2 weeks investigation. So much for the skills and resources of the largest software vendor in the world...
 
It took me 2 days to sort this out. Microsoft couldnt even suggest anything after 2 weeks investigation. So much for the skills and resources of the largest software vendor in the world...

You should contact MS and let them know what the resolution is. You know for future refrences...

_____________________________
Just Imagine.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top