PDA

Click to See Complete Forum and Search --> : How to serialize multithread calls to an activeX


Simus
Apr 25th, 2001, 11:27 AM
Hi,

I have created a simple activeX in VB.
2 functions that displays messagebox.

then with a VC program, i create 2 threads.

thread1 call fct1
thread2 call fct2

but when thread2 try to call fct2, it crashes in a vb dll.

Is there way for an VB activeX to support this kind of calls?
thanks!

Moreover, i explain what i try to do.
I make a multithread VC program. but i use an ActiveX that does not support multithread access, then the idea is to create a VB activeX which will be a wrapper to the other activeX and then i will have all the calls to the object automatically serialize.

Any idea?

digitallaser
Apr 27th, 2001, 05:01 AM
I ran into the same thing, but I began to use process names and states. uhm.. look at:

http://www.codearchive.com/search/search.cgi?search=is%20process%20running&section=VB&startat=0

Hope the link worx and hope I got the right end of your story =)

Cya

-digitallaser

Simus
Apr 27th, 2001, 06:34 AM
Hi,
The link you give me is not right.

Can you give me the global step to do what i expect
thx