Cannot Quit service using ServiceManager

Jan 10, 2011 at 12:02 PM


I  have used ur sample program to write my own service. Everything works well but when I try to press the Quit button the program will freeze.

I did  some debugging and I can see that SendMessage method will never return.


Don't know if this helps but I create and run two different threads in my service that I use to collect GPS data and write them to a file for testing purposes.