Accessing IHTMLImgElement properties crashes mshtml
- From: Stephane van Hardeveld <s.vanhardeveld@xxxxxxxxx>
- Date: Fri, 24 Nov 2006 17:10:35 +0100
My application uses the webbrowser object to show HTML content. When I installed IE7, some problems started to occur:
When a new page is loaded, I detect if an IMG tag is present. I retrieve the IHTMLImgElement interface of this object.
I then connect this to a CComPtr. While in the same thread I am able to access the properties of this object. However, when I try to access IHTMLImgElement properties from a new thread (e.g. via get_width), my application crashes in mshtml.dll.
Is it possible this has something to do with the new Object Caching? I tried to add FEATURE_OBJECT_CACHING to the Internet Explorer settings in the registry, as stated in http://msdn.microsoft.com/library/default.asp?url=/workshop/essentials/whatsnew/whatsnew_70_sec.asp, but to no avail.
Please, give me some pointers to a solution, since I have several hundred copies of my application in the field, who work well with internet explorer 6 installed, but I am concerned all will fail pretty soon, when IE 7 is automatically installed via a windows update...
With regards,
Stephane van Hardeveld
.
- Follow-Ups:
- Re: Accessing IHTMLImgElement properties crashes mshtml
- From: Igor Tandetnik
- Re: Accessing IHTMLImgElement properties crashes mshtml
- Prev by Date: Re: Multiple Instances of AxWebBrowser
- Next by Date: Manage WebBrowser security...
- Previous by thread: Multiple Instances of AxWebBrowser
- Next by thread: Re: Accessing IHTMLImgElement properties crashes mshtml
- Index(es):
Relevant Pages
|
|