I tried ur expample but i couldnot reproduce your error.
I also have sometimes problems with mshtml.dll or shdocs but i couldnt
find any good reason why it happen.
--- In delphi-webbrowser@yahoogroups.com, "Aliaksander Markau"
<markov@...> wrote:
>
> Hello,
>
> When loading a file that contains the HTML code below, the error
> "Access violation in mshtml.dll" happens. It happens no matter what
> method is used: Navigate, loadfromfile.
>
> The main problem is in <html xmlns="http://www.w3.org/1999/xhtml"> line.
>
> The error happens with all the versions of IE.
>
> Does anybody have a solution?
>
> =======================================================================
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
> <html xmlns="http://www.w3.org/1999/xhtml">
> <head>
> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
> <BODY>
> BlaBla
> </BODY></HTML>
> ========================================================================
>