locked
IVsQueryEditQuerySave hangs when call from other thread.. RRS feed

  • Question

  • Hi,

    We use the SDK to have a our package/project and internsive operations we perfrom in a other thread so the gui (i.e VS) stayes
    responsieve..  from this thread i need to call IVsQueryEditQuerySave2.QueryEditFiles(...) to check out ither the project file or other file..when i call this from this thread the call just 'hangs'.. i.e does not return.. if a call the same code from the main thread.. then the call QueryEditFiles return as you would expect..

    Does see this before or knows whether QueryEditFiles need to be called from the main thread?

    Cheers,

    Fred


    Friday, February 19, 2010 12:20 AM

Answers

  • Hi Fred,

    You'd need to marshal the interface to the background thread. A better solution would be to find a way to execute the call on the main UI thread.

    Ed...
    Ed Dore
    Friday, February 19, 2010 2:35 AM

All replies

  • Hi Fred,

    You'd need to marshal the interface to the background thread. A better solution would be to find a way to execute the call on the main UI thread.

    Ed...
    Ed Dore
    Friday, February 19, 2010 2:35 AM
  • Hi Ed,

    Yes you are correct. I'm now doing it on the main thread and display a progress dialog on a other thread!

    Cheers,

    Fred
    Sunday, February 21, 2010 9:44 PM