tags:

views:

282

answers:

2

Hello,

I created an activeX control to perform some actions, which take about 1 minute. During this action IE freezes completely. Is there a way to call the activeX control so that IE does not freeze?

Thank you

A: 

This is a threading issue dealing with IE, so I don't think there is any way to do this.

McWafflestix
Can I workaround it? If I were to add my activeX into an Iframe, it would cause the same issue, right?
vikasde
Yeah, I think it would; I think the only way to really avoid this would be to spawn a new IE window, and invoke the control from within that one. Or change the ActiveX control to spawn a worker thread, of course.
McWafflestix
+3  A: 

You would have the same problem in any ActiveX host, not just IE. If you don't want to block the UI thread, then you need to change your ActiveX control to do its work on a secondary thread.

Joe White
How would I do that? I created my control in C# and used Regasm to to register it.
vikasde

related questions