locked
Base.Start() is not calling (Hence no form staring up) using MRSD 2008 R3 RRS feed

  • Question

  • Hi everyone,

    I've been using MRDS to put together a undergraduate course but I've run into a problem that keeps cropping up. I added a colour sensor to tutorial 4 for testing purposes by modifying the manifest and wrote some code. No problems so far. I switched to R3, re-wrote the code and suddenly Base.Start() never calls. All the services are running (I can access everything though the web interface). I then re-installed R3,code ran for a while then 'broke' again. Can anyone tell me what I'm doing wrong?

    Work Machine: Windows 7 32 bit MRSD 2008 R3

    Home machine: Windows 7 64 bit MRSD 2008 R3

    Start code:

            protected override void Start()

            {

                base.Start();

     

                WinFormsServicePort.Post(new RunForm(StartForm));

                _drivePort.Subscribe(_driveNotify);

                _srPort.Subscribe(_srNotify);

                _ColorPort.Subscribe(_ColorNotify);

                Activate<ITask>(

                    Arbiter.Receive<drive.Update>(true, _driveNotify, NotifyDriveUpdate),

                    Arbiter.Receive<sr.SpeechRecognized>(true, _srNotify, OnSRRecognition),

                    Arbiter.Receive<analogsensor.Replace>(true, _ColorNotify,ReadColourHandler));            

            }

    Color post code:

            public void ReadColourHandler(analogsensor.Replace message)

            {

                string strColourID,strColour = "";

     

                strColourID = Convert.ToString(message.Body.RawMeasurement);

     

                switch (message.Body.RawMeasurement.ToString())

                {

                    case "1":

                        strColour = "Nothing/Black";

                        break;

                    case "2":

                        strColour = "Blue";

                        break;

                    case "3":

                        strColour = "Green";

                        break;

                    case "4":

                        strColour = "Yellow";

                        break;

                    case "5":

                        strColour = "Red";

                        break;

                    case "6":

                        strColour = "White";

                        break;

                }

     

                Console.WriteLine(String.Format("ColourID: {0} , Colour: {1}", strColourID,strColour));

     

            } 

    Saturday, August 28, 2010 1:25 PM

Answers

  • Hi,

     

    Waited 20 minutes - no timeouts.

     

    I reinstalled R3 and re-modified the Tutorial 4 code and changed the existing manifest. Now its working fine. Perhaps it has something to do with how I'm creating a manifest using the manifest editor? I'm pretty sure I'm doing it correctly - its pretty straight forward.

     

    Gavin

    Sunday, August 29, 2010 9:47 AM

All replies

  • Hello,

    Do you get any timeout error message? You might have problems if you don't wait your partners until they start.

    If your R2 code works, you can use the DSS migration tool and you won't have to re-write anything.

    Masa

    Sunday, August 29, 2010 4:47 AM
  • Hi,

     

    Waited 20 minutes - no timeouts.

     

    I reinstalled R3 and re-modified the Tutorial 4 code and changed the existing manifest. Now its working fine. Perhaps it has something to do with how I'm creating a manifest using the manifest editor? I'm pretty sure I'm doing it correctly - its pretty straight forward.

     

    Gavin

    Sunday, August 29, 2010 9:47 AM