Results 1 to 6 of 6

Thread: Automation Error

  1. #1
    LeoHart
    Guest
    Hi,

    ever so often I receive the following error in my application:

    -2147417848 Automation Error. The object invoked has disconnected from its client

    The error is happend randomly so I have been unable to identify what is happening. Does anyone know what this error means and how I can work around it.

    Many thanks,

    Leo

  2. #2
    Fanatic Member
    Join Date
    Jun 1999
    Location
    California, USA
    Posts
    662
    If you're doing what i'm doing (writing an ActiveX EXE and DLL at the same time with two instances of vb) you'll need to unreference the activex exe from dll each time you change the exe.

    When you start the exe, then you can refence it from the dll (until you change the exe again.)

    If this is not what your doing then, i have no idea how to help you here.

  3. #3
    LeoHart
    Guest
    Many thanks for your reply.

    To clarify, The application I have written is an OCX which is placed on an ActiveX exe. The OCX references 2 DLLs. None of my components reference the AxtiveX exe. All access to the DLL are initiated via the OCX.

    Any ideas???

    Thanks again,

    Leo.

  4. #4
    Addicted Member
    Join Date
    Aug 2001
    Location
    Pennsylvania
    Posts
    133

    Known Problem

    Well this is a known bug
    You will need to install service pack 5. At least this is what Microsoft says.

  5. #5
    PowerPoster
    Join Date
    Nov 2001
    Location
    Trying to reach and stay in the cloud
    Posts
    2,089
    Sorry to have brought this thread up, But I am getting the same error. I am using no dll's or ocxs and the OS is Xp. then too I get this error. If someone has found a soln or a reason , Kindly post it back.

  6. #6
    Stiletto
    Guest
    This error happens couse your program or one of your objects is referencedto another, and when it runs, it can't 'open' the referenced object by its own.

    For example, you take a test program and a test ActiveX exe, and you reference the AX with teh program, and you put code which tells the ActiveX to run.
    You run the program, click on the command button which runs the code which suppose to run the AX, but if u'll try it u'll see it aint workin, cuz the ActiveX cant run itself. you will need to click the 'play' button in the AX and only then you will be able to run the AX from the program, since the AX is already running.
    Hope I helped...

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