https://bugzilla.novell.com/show_bug.cgi?id=682256

https://bugzilla.novell.com/show_bug.cgi?id=682256#c0


           Summary: When i run my service using mono-service2 and after i
                    stop the service cpu usage is increased to > 100
    Classification: Mono
           Product: Mono: Class Libraries
           Version: 2.8.x
          Platform: Macintosh
        OS/Version: Mac OS X 10.4
            Status: NEW
          Severity: Major
          Priority: P5 - None
         Component: System
        AssignedTo: [email protected]
        ReportedBy: [email protected]
         QAContact: [email protected]
          Found By: Other
           Blocker: Yes


Description of Problem:
 have a developed a simple windows service. Want to run using mono-service2 in
mac. So i am successfully able to run the service and able to pause and
continue and stop the service. But after stop the service i am observing cpu
usage is increased > 100%.

Steps to reproduce the problem:
1.mono-service2 <myservicename>
2. kill `cat /tmp/<mayservicename>/lock`
3. Open activity monitor observe process name with mono. cpu usage increased
to> 100%


Actual Results:
cpu usage is increased more then 100%

Expected Results:
I think it should not increase

How often does this happen? 
Every time

Additional Information:
And the code is,

namespace MonoServiceTestSrvr
{
    static class Program
    {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        static void Main()
        {
            ServiceBase[] ServicesToRun;
            ServicesToRun = new ServiceBase[] 
            { 
                new Service1() 
            };
            ServicesToRun[0].CanPauseAndContinue = true;
            ServiceBase.Run(ServicesToRun);
        }
    }

    public class Service1 : ServiceBase
    {
        public Service1()
        {
        }

        protected override void OnStart(string[] args)
        {
            Connsole.WriteLine("start...");
        }



        protected override void OnStop()
        {
            Console.WriteLine("stop....");
        }

        protected override void OnPause()
        {
            Console.WriteLine("Pauce....");
        }

        protected override void OnContinue()
        {
            Console.WriteLine("Continue....");
        }

    }

}

-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
_______________________________________________
mono-bugs maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs

Reply via email to