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. ActiveX & Threads...gettin' Funky - Check this Out.

ActiveX & Threads...gettin' Funky - Check this Out.

Scheduled Pinned Locked Moved COM
c++comhelpquestion
3 Posts 3 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.
  • T Offline
    T Offline
    Tim Rymer
    wrote on last edited by
    #1

    I've got this ActiveX Object (made w/ VC++6.0), it creates a thread (so i can have multiple running at the same time), but it also fires events to my Visual Basic App. With me creating threads cause problems for those events trying to get back to the application? It seems that way. VB seems to crash when i Fire an event. When i use an activex control, does it have its own thread? Can i redirect the thread ID or something like that? It's just being flat out weird. Has anyone had the same trouble before? I set up connection points at the beginning when i made the obj., is there any other settings that i need to have? Even a little bit of help will go a long way for me...Thanks Y'all. :-D ~TIM! SHABBA!!

    A 1 Reply Last reply
    0
    • T Tim Rymer

      I've got this ActiveX Object (made w/ VC++6.0), it creates a thread (so i can have multiple running at the same time), but it also fires events to my Visual Basic App. With me creating threads cause problems for those events trying to get back to the application? It seems that way. VB seems to crash when i Fire an event. When i use an activex control, does it have its own thread? Can i redirect the thread ID or something like that? It's just being flat out weird. Has anyone had the same trouble before? I set up connection points at the beginning when i made the obj., is there any other settings that i need to have? Even a little bit of help will go a long way for me...Thanks Y'all. :-D ~TIM! SHABBA!!

      A Offline
      A Offline
      Anders Molin
      wrote on last edited by
      #2

      I need to be Free threaded. If you selected Apartment Threaded when you created the object it will fail. Go into the rgs-file, and check the threading model, it should say "Free" and not "Apartment" or something else... - Anders Money talks, but all mine ever says is "Goodbye!"

      A 1 Reply Last reply
      0
      • A Anders Molin

        I need to be Free threaded. If you selected Apartment Threaded when you created the object it will fail. Go into the rgs-file, and check the threading model, it should say "Free" and not "Apartment" or something else... - Anders Money talks, but all mine ever says is "Goodbye!"

        A Offline
        A Offline
        Ali Issa
        wrote on last edited by
        #3

        As well as that, you need to initialise it as multithreaded. Do this in your thread function. G.Luck :cool:

        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