Vegar
Vegar

Reputation: 12898

Delphi, TWebBrowser and IE8 -> application freeze on closedown

In our applications, we display a webpage in a TWebBrowser component.

After installing IE8, some of our application started to stop responding on closedown. We have found the following to be true:

Have anybody experienced something similar?

One url that freeze the application: http://www.finale.no/arsoppgjor
One url that does not freeze the application: http://www.finale.no/avstemming_meldinger

** UPDATE **

We have now found a pattern, a pattern thats kind of strange, but it's no less a pattern... When the page that we display contains images, and the images is scaled, our application freezes. For now, we will just remove or rescale images.

Upvotes: 1

Views: 2296

Answers (2)

dmajkic
dmajkic

Reputation: 3488

Long shot: did you put OleInitialze OleUinitialze in your app?

Upvotes: 1

Craig Stuntz
Craig Stuntz

Reputation: 126547

Sounds like there may be a thread deadlocking. I would run SysInternals Process Explorer on your application when it is deadlocked. Add a reference to the Microsoft symbols (Options -> Configure symbols). Now double-click the process, and choose the Threads tab. Look through IE's threads and see if you can figure out if one is deadlocking and why, especially from the stack.

I recommend doing this in Process Explorer instead of the Delphi debugger since Process Explorer understands the Microsoft symbols.

Upvotes: 0

Related Questions