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

IVsSolutionBuildManager.FindActiveProjectCfg fails with a thread pool call

$
0
0

Hi All

Our project works well on VS2010 and now we start to port it to VS2012.

In our package, we implemented our own language project type and we are quering current configuration via IVsSolutionBuildManager.FindActiveProjectCfg, it works as expected during the call from the main thread in VS2012.

However, once we put the call on a non-main thread, e.g. a threadpool, it returns 0x80070057, the parameter is incorrect.

Moreover, I find the new api in IVsSolutionBuildManager5.FindActiveProjectCfgName, it works on both main thread and threadpool call, but just returns the name only.

I do believe VS2012 is advanced on async way, but I don't find any document helpful to revise our code to make IVsSolutionBuildManager.FindActiveProjectCfg on a thread call. Please advice.

In addition, I do check with C# project, it works with IVsSolutionBuildManager.FindActiveProjectCfg perfectly. Is there some thing we need to care about our project node hierarchy implementation for VS2012?

Regards,

Yi  


MSC on Computer Science (Parallel algorithm)


Viewing all articles
Browse latest Browse all 4410

Latest Images

Trending Articles



Latest Images

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