[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: IBugTraqProvider, OnCommitFinished and WPF

From: Stefan Küng <tortoisesvn_at_gmail.com>
Date: Sat, 14 Mar 2009 00:06:21 +0100

Stephane EHRET wrote:
> Hi Stefan,
>
> Thanks for adding the CheckCommit method...
> ;-)
>
> My BugTraq plugin contains a few Wpf windows. No problem at all when a
> Wpf window is instanciated by GetCommitMessage2.
>
> However, when I try to instanciante a Wpf from within
> OnCommitFinished, I get the following error:
> "The calling thread must be STA, because many UI components require
> this."
>
> Everything works fine if I use a "regular" Win Form instead of the Wpf
> window, but I'd like to avoid that...
>
> Have you got any clue why?

WPF uses multiple threads, not just one. For example, the
rendering/composition is happening on a second thread from the UI thread.

Do a google search on "The calling thread must be STA, because many UI
components require this." and you'll find out what to do.

Stefan

-- 
       ___
  oo  // \\      "De Chelonian Mobile"
 (_,\/ \_/ \     TortoiseSVN
   \ \_/_\_/>    The coolest Interface to (Sub)Version Control
   /_/   \_\     http://tortoisesvn.net
------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=4061&dsMessageId=1319200
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_tortoisesvn.tigris.org].

Received on 2009-03-14 00:06:37 CET

This is an archived mail posted to the TortoiseSVN Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.