Quantcast
Channel: Visual Studio Integrate forum
Viewing all articles
Browse latest Browse all 4410

Should EnvDTE ItemOperations.OpenFile(filename) be called from another thread?

$
0
0

Hi,

I am calling into EnvDTE.DTE from other threads. I have implemented the STA appartment and COM retry as detailed in this previous question. However, calling some functions such as dte.ItemOperations.OpenFile(filename) from this other thread causes a hang. Moving it back to the main UI thread makes it work.

I have two questions:

1. Is it safe to call OpenFile from the main UI control thread?

2. How do I know which DTE functions it is safe to call from another thread?

many thanks,

Stewart.



Viewing all articles
Browse latest Browse all 4410

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>