Results 1 to 8 of 8

Thread: ActiveX control stops loading on machine sometimes

  1. #1

    Thread Starter
    Hyperactive Member greg_quinn's Avatar
    Join Date
    Nov 2002
    Location
    South Africa
    Posts
    366

    ActiveX control stops loading on machine sometimes

    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?

  2. #2
    PowerPoster Dave Sell's Avatar
    Join Date
    Mar 2004
    Location
    /dev/null
    Posts
    2,961
    Please explain exactly what you mean by this:

    I remove the control from a machine,

  3. #3

    Thread Starter
    Hyperactive Member greg_quinn's Avatar
    Join Date
    Nov 2002
    Location
    South Africa
    Posts
    366
    It means I remove the installed ActiveX control from the PC.

  4. #4
    PowerPoster Dave Sell's Avatar
    Join Date
    Mar 2004
    Location
    /dev/null
    Posts
    2,961
    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.

  5. #5

    Thread Starter
    Hyperactive Member greg_quinn's Avatar
    Join Date
    Nov 2002
    Location
    South Africa
    Posts
    366
    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?

  6. #6
    PowerPoster Dave Sell's Avatar
    Join Date
    Mar 2004
    Location
    /dev/null
    Posts
    2,961
    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.

  7. #7

    Thread Starter
    Hyperactive Member greg_quinn's Avatar
    Join Date
    Nov 2002
    Location
    South Africa
    Posts
    366
    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.

  8. #8

    Thread Starter
    Hyperactive Member greg_quinn's Avatar
    Join Date
    Nov 2002
    Location
    South Africa
    Posts
    366
    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width