PDA

Click to See Complete Forum and Search --> : ActiveX control stops loading on machine sometimes


greg_quinn
Sep 27th, 2004, 03:32 AM
On some machines, one of my ActiveX controls stops installing. For instance, if I remove the control from a machine, and then go back to the web page with the control, it asks me if I want to install it, but then doesn't install it.

Then if I go back to the page again, and it still asks me if it wants to install, but then again, still doesn't install it.

This is purely random on some machines, but the problem is now this control will no longer work on these machines.

How can I fix this?

Dave Sell
Sep 29th, 2004, 03:58 PM
Please explain exactly what you mean by this:

I remove the control from a machine,

greg_quinn
Sep 30th, 2004, 02:58 AM
It means I remove the installed ActiveX control from the PC.

Dave Sell
Sep 30th, 2004, 08:18 AM
There is more than 1 way this can be accomplished. You can delete it from disk, or you can unregister it from the registry, or a combination of both.

Let me know.

greg_quinn
Sep 30th, 2004, 10:16 AM
Let me rather give an update on this problem.

It seems like since I changed some code in my ActiveX control, the control doesn't load up properly on some PC's.

The control doesn't even install. I.e every time you go back to the page it asks if you want to install it, but it doesn't install. (It doesn't appear in the Windows\Downloaded Program Files folder.

This is only happening on some PC's. Others the control works perfectly. Yet in every sub and function in my control I have handled error's and msgbox'd any errors that popup, but no errors do popup. And the control just shows a blank X.

This control of mine always worked, only lately, after the latest code change, has it started this random behaviour.

But my question, why should this happen on only some machines? And not all? There is obviously not a code problem, otherwise it wouldn't work at all, am I right?

What else could I check?

Dave Sell
Sep 30th, 2004, 11:35 AM
If you bind a client application (COM consumer) to an activex control, then you cannot change the COM control.

If you do, then you will have to re-register the new control with the OS. Maybe parts of this process have taken place on some machines and not on others.

greg_quinn
Oct 1st, 2004, 01:10 AM
No, thats not the problem I'm having. I've added and removed controls using the Downloaded Program Files folder successfully for ages.

It seems now on certain PC's even after creating a control from scratch, that its not loading on certain PC's. This is with a totally new control.

I'm going to install VB6 on another PC and build the control from there, I fear something may be corrupt with my vb6, the package & deployment wizard, or something.

greg_quinn
Oct 1st, 2004, 06:07 AM
Well, I installed VB6 on the laptop and compiled the control from there and now everything works as it should.

Guess something did get corrupt in my VB