Threading issues?

S

Sergei

Can't find any information on threading issues with Visio (Apart from a
small inconclusive article on Graham Wideman site with a suggestion of
queuing events).

Question 1: Are we guaranteed with Visio 11's ActiveX controls that all our
event handlers are called on the main thread? NB. I have to use several
Document level events which are not ActiveX control's events!

Question 2: Are all the call using ONLY activeX's published events
guaranteed to be on the main thread?

Question 3: If 1 or 2 is true, then my understanding is that (if I use
events accordingly ( Q1 or Q2 style))


The reason is that using Automation from a C# application one can easily see
Visio calling event handlers on different threads (actually I tried it
before Visio 11 was out with Visio 10 last time).

Question 4:
Now: - with Visio ActiveX control (using Visio 11 now) I did not see my
handlers called on different thread - is this because AciveX is queueing
them (for example events generated by my calls to Visio objects and ActiveX
from the main thread/ or event handlers) internally before calling me?

I suspect a lot of problems we a having are coming from not understanding
the threading model used.

Ta
Sergei
"Too many problems, too little work."
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top