RobotStudio event

Could not read/write variable

If i try to read or write a variable from the controller, I get the following message:

"Attempted to read or write protected memory. This is often an indication that other memory is corrupt."

I read a string for example in the following way:


value = Controller.GetRapid().GetRapidData(valName).StringValue;

Does anyone know what this could probably cause?

 

Comments

  • What type of project do you have, PC or FlexPendant? WHat version of RAB and RobotWare do you have?

    What RAPID data type are you trying to read? Where is it located in the system, i.e. what is the Task, Module, and Variable name?

    What exception type is being raised?

    Russell Drown