Results 1 to 5 of 5

Thread: Error: "Query Interface...."

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jun 2002
    Posts
    79

    Error: "Query Interface...."

    I (unfortunately only sometimes) get the error message "QueryInterface for interface System.Runtime.InteropServices.UCOMIConnectionPoint failed".

    What does that mean?

    This morning I got it when debugging at the following statement:

    Code:
    RemoveHandler CType(objWordInstance, Word.ApplicationEvents2_Event).DocumentBeforeClose, AddressOf DocumentBeforeClose
    Random?

  2. #2
    New Member
    Join Date
    Mar 2003
    Location
    barcelona
    Posts
    8
    I’ve the same problem. I’ve a VB.Net program using functions from a VB6 dll and sporadically I get this message. Did you find any solution or explanation?

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Jun 2002
    Posts
    79
    Not really.
    I put the statement I mentioned (Removehandler...) in a empty try...catch...end try:
    VB Code:
    1. Try
    2.     RemoveHandler CType(objWordInstance, Word.ApplicationEvents2_Event).DocumentBeforeClose, AddressOf DocumentBeforeClose
    3. Catch
    4. End Try
    and after that I didn't have the error again. But I think that's only a kind of workaround not a solution.

  4. #4
    New Member
    Join Date
    Mar 2003
    Location
    barcelona
    Posts
    8
    Thnx, I will try this “solution” (or workaround), if it works, it is enough for me.

  5. #5
    New Member
    Join Date
    Mar 2003
    Location
    barcelona
    Posts
    8
    Hi,

    I’ve found a solution for this bug, (I don’t know if you exactly have the same problem) My application is using COM objects and I get this message leaving the application idle for approx. 10 or 15 min., and then trying to work with it again. Surfing the web, I’ve found that Microsoft has a patch for this bug; the patch is Q325699, but it is a non-public fix and you have to contact Product Support Services to get it (in any case, this bug will be fixed in the next framework service pack).
    I’m using this patch and at the moment it works fine.

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