B
BveB
I want to make a listener thread for some actions on windows forms but
when I use Thread class cpu usage goes to 100% what can I do?
private void Th_Func(){
while(true){
if(STATE_FORMCLICK){
//do some work
}
if(STATE_RECBUTTONCLICK){
//do some work
}
}
}
Wht is wrong?
when I use Thread class cpu usage goes to 100% what can I do?
private void Th_Func(){
while(true){
if(STATE_FORMCLICK){
//do some work
}
if(STATE_RECBUTTONCLICK){
//do some work
}
}
}
Wht is wrong?