G
Guest
I created a windows service in OnStart and created a thread like
mainThread = new Thread(new ThreadStart(Run));
mainThread.Start();
in Run ()
while(true)
{
//do something
}
the problem that Run wont called else one time just when i click Start then
never called why?
mainThread = new Thread(new ThreadStart(Run));
mainThread.Start();
in Run ()
while(true)
{
//do something
}
the problem that Run wont called else one time just when i click Start then
never called why?