|
Cross-thread operation not valid: Control
Il framework 2.0 non permette l'esecuzione di chiamate non thread-safe. Bisogna, o cambiare il codice in modo che sia sempre il thread padre ch interroga il figlio o avvalersi di soluzioni piu' tecniche utilizzando magari la "BeginInvoke".
Un'altra soluzione possibile è l'utilizzo della Invoke dal processo in background ad una delegate del processo padre per "avvertirlo" di una azione avvenuta.
The UI controls are not thread safe. Previous versions of .Net would allow these thread-unsafe to be made, but they will cause weird things to happen (often resulting in the application just disappearing) eventually. .Net 2 detects these bad cross-thread calls, and raises an exception.
 venerdì, 13 gen 2006 Ore. 11.40
|
Calendario |
| l | m | m | g | v | s | d |
---|
31 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 |
|
Statistiche |
- Views Home Page: 6.378
- Views Posts: 6.869
- Views Gallerie: 2.692
- n° Posts: 9
- n° Commenti: 6
|
|