Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. COM
  4. Thread/ COM Connection point

Thread/ COM Connection point

Scheduled Pinned Locked Moved COM
comquestion
2 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    benglish72
    wrote on last edited by
    #1

    Hi, I've got a question about a com interface that is a bit slow, so I've put it into a worker thread that seems to go ok. The trouble is this interface takes a connection point interface to report events. By the time the thread has terminated, and thus unitializes com for the thread, not all the events have been fired for the com interface. I was wondering what's the best way to get all the events before the thread returns. Thanks. Festina, vita breve est!

    B 1 Reply Last reply
    0
    • B benglish72

      Hi, I've got a question about a com interface that is a bit slow, so I've put it into a worker thread that seems to go ok. The trouble is this interface takes a connection point interface to report events. By the time the thread has terminated, and thus unitializes com for the thread, not all the events have been fired for the com interface. I was wondering what's the best way to get all the events before the thread returns. Thanks. Festina, vita breve est!

      B Offline
      B Offline
      benglish72
      wrote on last edited by
      #2

      I worked it out, the CoInitialize() call was putting the thread in an STA, but there was no Message pump to process messages and so COM sat around waiting for ever. Who says MSDN help can't be useful sometimes? Festina, vita breve est!

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups