BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

[IE7] Access violation for TWebBrowser: fixes didn't work at

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi (General)
View previous topic :: View next topic  
Author Message
euthymos
Guest





PostPosted: Sat Nov 18, 2006 4:12 pm    Post subject: [IE7] Access violation for TWebBrowser: fixes didn't work at Reply with quote



Dear developers, I've made a small application that uses a TWebBrowser
component. Inside this TWebBrowser, there are many scripts and there's
a lot of interaction between IE and the program itself. With IE6 no
problems.

With IE7, I get this exception:
Access violation at address 00669BE1 in module 'MySQLNewsManager.exe'.
Read of address 00000000

I searched the Internet and found several pages describing this very
problem, but none of the fixes worked. Disabling FEATURE_OBJECT_CACHING
(like described in
http://msdn.microsoft.com/library/default.asp?url=/workshop/essentials/whatsnew/whatsnew_70_sec.asp)
is completely USELESS.

Can you help me?

Thank you in advance.
Back to top
euthymos
Guest





PostPosted: Sat Nov 18, 2006 11:01 pm    Post subject: Re: [IE7] Access violation for TWebBrowser: fixes didn't wor Reply with quote



Debugging, I've found the line which raises the exception.

var
MyTextField, MySummaryField : string;
Document : IHTMLDocument2;
elem : IHTMLTextAreaElement;


Document := WebBrowser1.Document as IHTMLDocument2;
elem := Document.all.item('htmlbox', 0) as IHTMLTextAreaElement;
elem.value := MySummaryField; // <<< This line raises an
EAccessViolation exception with message 'Access violation at address
0066AA87 in module 'MySQLNewsManager.exe'. Read of address 00000000'.




euthymos ha scritto:

Quote:
Dear developers, I've made a small application that uses a TWebBrowser
component. Inside this TWebBrowser, there are many scripts and there's
a lot of interaction between IE and the program itself. With IE6 no
problems.

With IE7, I get this exception:
Access violation at address 00669BE1 in module 'MySQLNewsManager.exe'.
Read of address 00000000

I searched the Internet and found several pages describing this very
problem, but none of the fixes worked. Disabling FEATURE_OBJECT_CACHING
(like described in
http://msdn.microsoft.com/library/default.asp?url=/workshop/essentials/whatsnew/whatsnew_70_sec.asp)
is completely USELESS.

Can you help me?

Thank you in advance.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi (General) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.