locked
Robotics Tutorial 4 RRS feed

  • Question

  •  

    Hi,

         managed to build the project and debugged the program. However, when i clicked the directional pads,

     

     

    _drivePort.SetDrivePower(drivePowerReq)   --------------- Highlighted Error

     

     

    NULLReferenceException was unhandled

    Object reference not set to an instance of an object.

     

    Troubleshooting tips:

    Use the "new" keyword to create an object insance.

    Check to determine if the object is null before calling the method.

    Get general help for this exception.

     

    Search for more Help Online...

     

    Actions

    View Detail...

    Copy exception detail to the clipboard

     

     

     

    ANYONE HELP?

    Thursday, July 24, 2008 8:21 AM

Answers

  • Hi,

     

    Sorry, may i know what is RDS? Robotics Developer Studio? I'm using Visual Studio 2005 and Microsoft Robotics Studio 1.5.

     

    I'm using Microsoft Windows XP and the Manifest -    LEGO.NXT.MotorTouchSensor.manifest.xml

     

    The error message was posted when i pressed the directional buttons or the stop button.

     

     

    Thanks Trevor!

     

     

     

    Friday, July 25, 2008 5:53 AM

All replies

  • Hi,

     

    Can you please tell me what version of RDS you are running? There is no code that exactly matches the code fragment you supplied in the July CTP.

     

    Also, what operating system are you using and which manifest?

     

    The error message does not give me enough information because the problem could be with the drivePowerReq (most likely) or the _drivePort (not so likely).

     

    Trevor

     

     

    Friday, July 25, 2008 12:01 AM
  • Hi,

     

    Sorry, may i know what is RDS? Robotics Developer Studio? I'm using Visual Studio 2005 and Microsoft Robotics Studio 1.5.

     

    I'm using Microsoft Windows XP and the Manifest -    LEGO.NXT.MotorTouchSensor.manifest.xml

     

    The error message was posted when i pressed the directional buttons or the stop button.

     

     

    Thanks Trevor!

     

     

     

    Friday, July 25, 2008 5:53 AM