ActiveX Control will not instantiate

  • Thread starter Thread starter Connah
  • Start date Start date
C

Connah

Hi all.

Does anyone know of any utility out there that will help me determine
why IE will not instantiate an ActiveX control?

I have written a custom ActiveX control in Visual Basic 6. It has no
GUI, it simply exposes a few methods that are accessed by VBScript. On
some computers, I am having trouble getting the control to instantiate
consistently. The kicker is that SOMETIMES it instantiates without any
changes to the control, client, or HTML. If you refresh and clear your
cache enough (or so it seems), eventually it will work. Reload a few
more times, and it stops instantiating! Instead of the control, I get a
small square box with a dot in the middle where it should be. The
control is properly registered and I can instantiate it inside of a
Visual Basic program on the same computer consistently.

Thank you!

Matthew Connor
 
Hi Connah,

Apartment threaded? What does your active X do? Any browser hooks? ISetSite
method calls:

Regards.
 
Hi Connah,

Try breaking ActiveX compatibility and recompiling you activex exe with
different class names. I am only guessing that since clearing the cache
sometimes makes it work, and that it works on other computers that the
problem may lay with your development machine's configuration.

A test for this may be to reboot your machine completely before running your
browser and scripts and activex, so that the cache and protected dll folder
(I am guessing that IE will treat your activex exe as an in process dll and
place a copy there ).

If you are able to run your activex in debug mode in VB6, check that the
inprocessserver32 is calling vbdebug.dll

All guesses. Hope they help.

Regards.
 
Back
Top