Blog Stats
  • Posts - 2
  • Articles - 0
  • Comments - 354
  • Trackbacks - 2

 

Cross-thread operation not valid

Sappiamo che nel .Net Framework è vietato l'accesso ad un controllo da un thread diverso da quello in cui il controllo stesso è stato creato. Il framework solleva una InvalidOperationException se si tenta una simile operazione. Per aggiornare (ad esempio) l'interfaccia utente con le informazioni provenienti da un thread in esecuzione in background dobbiamo utilizzare l'interfaccia ISynchronizeInvoke, come spiegato ad esempio in http://msdn2.microsoft.com/en-us/library/ms171728.aspx. Se abbiamo diverse proprietà di diversi controlli che necessitano di essere aggiornate da thread differenti, potrebbe essere oneroso definire un metodo delegato per ciascuna, un metodo che verifica la proprietà InvokeRequired e un metodo che costituisca l'istanza del delegato. Per ovviare a tutto questo possiamo utilizzare una classe che prenda nel costruttore in ISynchronizeInvoke a cui delegare le chiamate cross-thread, come ho cercato di spiegare nell'articolo: http://www.codeproject.com/useritems/ISinchronizedInvoke.asp.


Feedback

# re: Cross-thread operation not valid

Gravatar I guess, there's numbers of motives why can we get research essay for sale! That can be the best alternative for academic papers creating. Numbers of guys use such things many years. 23/06/2011 02:40 | RosarioJoan

# www

Gravatar dsgafdhgadf 04/04/2012 13:23 | wrttt

# Pink Orchid GHD

Gravatar Hold' Em gaming titles get multiple levels of use in addition to fresh air. 06/04/2012 07:29 | Pink Orchid GHD

# GHD Precious Gift Set

Gravatar better highly developed New york Hold' Them house tournaments entirely 06/04/2012 07:41 | GHD Precious Gift Set

# re: Cross-thread operation not valid

Gravatar Nobody but plagiarism detection "theplagiarism.com" can guarantee that your texts are original. 21/12/2012 15:25 | plagiarism detection

# re: Cross-thread operation not valid

Gravatar The custom term paper written by professionals, can bring different persons an academic success. So it’s worth to buy an essay paper to get your goal, I guess. 16/01/2013 05:25 | term paper writing

# re: Cross-thread operation not valid

Gravatar Wow, this really cleared some things up. One essay i am having dispute with is a note for an "who we are" The teacher says that we will have to dig beneath into ourselves and pay attention to scan what we really are. But I think it would be more fittingto use custom dissertation (thesisleader.com). 18/01/2013 19:37 | dissertation service

# re: Cross-thread operation not valid

Gravatar Students that fight with writing papers realize that it's good to get essay written by proficient writers.Follow over here "writingscentre.com" in case you need to gain perfect custom writing support you need come to these essay writingcompany. 24/01/2013 20:05 | already written essays

# re: Cross-thread operation not valid

Gravatar Take a minute to just look over here "exclusivepapers.com" and we will change Your life with our great custom essay service. Stop failing and get a term paper. 15/02/2013 05:19 | Research Paper Notes

# re: Cross-thread operation not valid

Gravatar Order Book Review Essay, don’t waste your time and go about your own business while expert writers will cope with your writing work. 21/03/2013 09:47 | History Essay

# re: Cross-thread operation not valid

Gravatar Plagiarizing men waste their own ideas. The creators did properly when created plagiarism detect "theplagiarism.com". It saves their thoughts. 14/05/2013 03:50 | plagiarism detection

# re: Cross-thread operation not valid

Gravatar Our certified resume writers will be happy to provide CV writing help to job hunters who do not have time to write a resume. View Marvelousresume company "marvelousresume.com" and check resume templates. Now you are informed where to buy resume paper, so do not mull over buy resumes and build up your career. 25/05/2013 16:10 | home page

# re: Cross-thread operation not valid

Gravatar Students life is great, but, it has many difficulties like term essays composing. Very often it gets us surprises such as custom writing companies that give a chance to buy custom written paper (topwritingservice.com) written by professionals. 12/06/2013 17:21 | already written essay papers

# re: Cross-thread operation not valid

Gravatar This blog is a great source of information which is very useful for me. 04/08/2018 21:54 | jual obat aborsi malang

Comments have been closed on this topic.
 

 

Copyright © Simone Romano