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