thread

WPF The calling thread must be STA

In a multithread WPF project, we got program crash, but actually WPF did not give us any help or error information on the screen, then we tried to debug using steps, finally we got the following error information on a line of code with adding related variable in this line of code into Watch window:


asp.net (147) c# (104) .net (92) silverlight (62) sql server (59) visual studio (57) wpf (55) Web (53) Windows (51) sql (42) microsoft (40) cloud (38) wcf (35) mvc (27) windows forms (22) azure (19) computer (19) c++ (16) iis (16) source control (16) javascript (15) c (15) git (13) WordPress (13) mobile (13) database (13) map (13) report (12) Blog (10) gis (10) linux (10) php (9) svn (9) css (7) google (7) system (7) jquery (7) web api (6) windows phone (6) open source (5) html (5) java (5) gmail (5) bing map (5) windows server (4) system management (4) html5 (4) membership (4) amazon (4) vmware (4) control (4) Virtual Machine (4) blazor (3) storage (3) binding (3) api (3) security (3) virus (3) network (3) modbus (3) windows 7 (3) signalr (3) linq (3) chart (3) bing (3) eclipse (3) cpu (3) job (3) iot (3) youtube (3) mono (3) news (3) WebAssembly (2) static (2) .net core (2) socket (2) bootstrap (2) data (2) development (2) Router (2) server (2) programming (2) game (2) xbox (2) phone (2) visio (2) ado.net (2) setup (2) Skype (2) driver (2) xml (2) vb.net (2) cellphone (2) uml (2) VB (2) ssd (2) angularjs (2) animation (2) video (2) interview (2) tools (2) permission (2) xamarin (2) cross platform (2) tcp (1) client (1) Website (1) screen (1) tablet (1) ai (1) enum (1) esri (1) document (1) help (1) android (1) iphone (1) it (1) threat (1) software (1) WiFi (1) Powerline (1) Internet (1) postgresql (1) Scada (1) email (1) singleton (1) life (1) Code (1) web socket (1) iis express (1) entity framework (1) windows-8 (1) event (1) Cell phone (1) design (1) thread (1) mysql (1) editor (1) sql.server (1) msdn (1) shared (1) reset (1) share (1) kinect (1) size (1) install (1) print (1) grant (1) power (1) page (1) web app (1) printer (1) monitor (1) jave (1) wp7 (1) apps (1) office (1) dell (1) font (1) windows.form (1) vista (1) xp (1) ce (1) compact (1) object (1) hosting (1) Micorosoft (1) sdk (1) hot key (1) rss (1) combobox (1) gps (1) mobille (1) chrome (1) firefox (1) ie (1) embedded (1) media-player (1) firewall (1) GAC (1) browser (1) Memory (1) mfc (1) memebership (1) image (1) restful (1) deals (1) deal (1) angular (1) free shipping (1) ajax (1) iquery (1) core (1) tfs (1) config (1) password (1) 3d (1) maya (1) mel (1) rendering (1) agile (1) software development (1) hyper-v (1) linkedin (1) social (1) HDD (1) tekton (1) account (1) schduler (1) architecture (1) solution (1) seo (1) home (1)