I am developing one chat application on c#,and on that we use system.timer.timer for frequently getting data for new request and zone request also.
all the thing is running fine but when ever i sign out from application then this system timer is still running on background and generate error.so what i do for dispose all system timer when signout.
Please help me for this.
thanks in advance
I immagine you tried already
Stop()andClose(). If so, solution could be: during the closing of you applicaiton to makeSleep()for a couple of seconds main thread to let to timer’s thread release resources allocated before.There could be also a bug in application, which blocks timer’s thread for some reason, but it’s difficult to say to me, you should check it by yourself.
Hope this helps.
Regards.