Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Microsoft Web Browser control (shdocvw.dll) freezes when debugging

0 views
Skip to first unread message

Davorin Mestric

unread,
Mar 12, 2001, 7:34:51 AM3/12/01
to
imported SHDocVw.dll freezes when debugged, works fine when "started
without debugging".

i imported shdocvw.dll (Web Browser control) by adding it to the toolbox, i
got ShDocVw.dll and AxSHDocVw.dll files generated, added the control to a
form with a single button on. on the click handler for the button i do
this:

protected void button1_Click (object sender, System.EventArgs e)
{

//string url = "about:blank";

string url = http://www.microsoft.com;

object arg1 = 0; object arg2 = ""; object arg3 = ""; object arg4 = "";

html.Navigate( url, ref arg1, ref arg2, ref arg3, ref arg4);

}

this can not be run from the debugger. when started and when the button is
pressed on, the application freezes, and "break" can not unfreeze it. it
works fine if navigated to "about:blank".

if started without debugging, it navigates to the page just fine.

in project properties, debug mode is set to "project", if i enable unmanaged
debugging, the whole ide crashes after navigate.

did anybody else have similar problems?

thanks

Andreas Häber

unread,
Mar 12, 2001, 9:26:28 AM3/12/01
to
With me it's very unstable - running the application works most of the time
nice, but to debug the application sometimes it will debug and most of the
time it won't debug - just freezes. Nice with NT/Win 2000 to have the
ability to kill processes then :)

Andreas Häber

"Davorin Mestric" <davorin...@zg.tel.hrXXREMOVEXX> wrote in message
news:uFTTXDvqAHA.1392@tkmsftngp02...

Jonathan Pierce

unread,
Mar 18, 2001, 11:43:07 AM3/18/01
to
I had the same experience not being able to debug the app with the native
control. You should send a bug report. You can see this behavior with the
Quickstart WinForms AxHosting MDIBrowser sample app.

Jonathan

Andreas Häber


.

Andreas Häber

unread,
Mar 18, 2001, 2:33:33 PM3/18/01
to
I hope this will get better with IE6. Another issue is when you want to
change the HTML document inside your webbrowsercontrol. The
Win32.Interop.Trident namespace is deprecated and is to be removed in beta
2 - does this mean we're not gonna be able to do such or are they developing
a better solution (since Trident is a real pain to get working right).
Hopefully someday IE will be a .NET application instead of COM...

btw: What language do you use? I'm using C#, just wondering wether it's an
issue only with C# or if it's for all the .NET languages.

Andreas Häber

"Jonathan Pierce" <jpi...@nyc.rr.com> wrote in message
news:287f01c0afca$82923b50$a5e62ecf@tkmsftngxa07...

0 new messages