ATL Service and periodic task

Hi! I used ATL to create service in Visual Studio 2010. Than I code some service events( like a OnContinue() ). Tasks in the events executed and service stoped.
But I dont understan how to create periodic task. If make while(true){} in evetnt Start() service will get error "The service did not respond to the request in a timely manner" at start.
Please help to solve it.
up
Topic archived. No new replies allowed.