Click here to Skip to main content
15,898,588 members
Home / Discussions / C#
   

C#

 
Questionthread is blocking the gui form, why? Pin
Krzysztof Gorgolewski15-Apr-07 21:29
Krzysztof Gorgolewski15-Apr-07 21:29 
AnswerRe: thread is blocking the gui form, why? Pin
Christian Graus15-Apr-07 21:51
protectorChristian Graus15-Apr-07 21:51 
GeneralRe: thread is blocking the gui form, why? Pin
Krzysztof Gorgolewski15-Apr-07 22:05
Krzysztof Gorgolewski15-Apr-07 22:05 
GeneralRe: thread is blocking the gui form, why? Pin
Christian Graus15-Apr-07 22:46
protectorChristian Graus15-Apr-07 22:46 
AnswerRe: thread is blocking the gui form, why? Pin
Luc Pattyn15-Apr-07 21:52
sitebuilderLuc Pattyn15-Apr-07 21:52 
GeneralRe: thread is blocking the gui form, why? Pin
Krzysztof Gorgolewski15-Apr-07 22:15
Krzysztof Gorgolewski15-Apr-07 22:15 
GeneralRe: thread is blocking the gui form, why? Pin
Luc Pattyn15-Apr-07 22:27
sitebuilderLuc Pattyn15-Apr-07 22:27 
GeneralRe: thread is blocking the gui form, why? Pin
Guffa15-Apr-07 22:32
Guffa15-Apr-07 22:32 
Krzysztof Gorgolewski wrote:
and on my side it's not safe to use a sleep in this infinite loop, because i'm waiting for trigger signals from the device and using the sleep could miss some signals.


If the code would be so time critical, then it would not be possible to maintain a GUI at all while it's running, as the thread does not get any CPU cycles while the GUI is being updated.

Try to put a Thread.Sleep(0) in the loop to allow any CPU time at all to go to the GUI thread.

---
single minded; short sighted; long gone;

GeneralRe: thread is blocking the gui form, why? [modified] Pin
Krzysztof Gorgolewski15-Apr-07 22:45
Krzysztof Gorgolewski15-Apr-07 22:45 
AnswerRe: thread is blocking the gui form, why? Pin
Guffa16-Apr-07 0:38
Guffa16-Apr-07 0:38 
GeneralRe: thread is blocking the gui form, why? Pin
Krzysztof Gorgolewski16-Apr-07 1:12
Krzysztof Gorgolewski16-Apr-07 1:12 
AnswerRe: thread is blocking the gui form, why? Pin
Martin#15-Apr-07 21:55
Martin#15-Apr-07 21:55 
GeneralRe: thread is blocking the gui form, why? Pin
Krzysztof Gorgolewski15-Apr-07 22:20
Krzysztof Gorgolewski15-Apr-07 22:20 
GeneralRe: thread is blocking the gui form, why? Pin
Martin#15-Apr-07 22:36
Martin#15-Apr-07 22:36 
Answerthanks to all Pin
Krzysztof Gorgolewski16-Apr-07 4:57
Krzysztof Gorgolewski16-Apr-07 4:57 
Questionxpath Vs xml validation with xsd Pin
praveenkumar palla15-Apr-07 21:05
praveenkumar palla15-Apr-07 21:05 
AnswerRe: xpath Vs xml validation with xsd Pin
Stefan Troschuetz15-Apr-07 21:10
Stefan Troschuetz15-Apr-07 21:10 
GeneralRe: xpath Vs xml validation with xsd Pin
praveenkumar palla15-Apr-07 21:23
praveenkumar palla15-Apr-07 21:23 
GeneralRe: xpath Vs xml validation with xsd Pin
Stefan Troschuetz15-Apr-07 21:34
Stefan Troschuetz15-Apr-07 21:34 
GeneralRe: xpath Vs xml validation with xsd Pin
praveenkumar palla15-Apr-07 21:49
praveenkumar palla15-Apr-07 21:49 
GeneralRe: xpath Vs xml validation with xsd Pin
Stefan Troschuetz15-Apr-07 22:06
Stefan Troschuetz15-Apr-07 22:06 
AnswerARE YOU MENTAL ???? Pin
Christian Graus15-Apr-07 21:55
protectorChristian Graus15-Apr-07 21:55 
GeneralRe: ARE YOU MENTAL ???? Pin
Jaiprakash M Bankolli15-Apr-07 22:23
Jaiprakash M Bankolli15-Apr-07 22:23 
GeneralRe: ARE YOU MENTAL ???? Pin
Christian Graus15-Apr-07 22:48
protectorChristian Graus15-Apr-07 22:48 
GeneralRe: ARE YOU MENTAL ???? Pin
Pete O'Hanlon15-Apr-07 22:50
mvePete O'Hanlon15-Apr-07 22:50 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.