2 Responses

Page 1 of 1
  1. Anders Strömberg
    Anders Strömberg September 9, 2011 at 2:06 pm | | Reply

    Try this for testing

    static void Main(string[] args)
    {

    if (Environment.UserInteractive)
    {
    //replace with your testcode
    //CheckTimer ct2 = new CheckTimer();
    //ct2.Start();

    while (true)
    System.Threading.Thread.Sleep(1000);
    }
    else
    {
    ServiceBase.Run(new Program());
    }

    }

Leave a Reply