i have the following code running in a thread
[code=c#]
while(true){
//some coding.....
//..........
//........
thread.currenTh read.suspend();
}
[/code]
this code is working fine.now i want to abrote this thread when the application
is closing.
i tried
thread.abrote() but it throws an exception saing that thread is suspended.
please help me to solve this.
thank you
chathura
[code=c#]
while(true){
//some coding.....
//..........
//........
thread.currenTh read.suspend();
}
[/code]
this code is working fine.now i want to abrote this thread when the application
is closing.
i tried
thread.abrote() but it throws an exception saing that thread is suspended.
please help me to solve this.
thank you
chathura
Comment