Calling Webservice Method from a timer method
I have created a timer.
TimerCallback timerDelegate = new TimerCallback(MyCallBack);
Timer timer = new Timer(timerDelegate,num,1000, 1000);
Simply call MyCallBack function after every second
Now in MyCallBack I just call the HelloWorld function of a simple webservice and displays that value in a listbox
void Inform(Object state)
{
m_lb.Items.Add(s.HelloWorld());
}
The funny thing is that this works only 19 times ...the string Hello is displayed only 19 times after which is stops....
WHY????????????